This project is a frontend built with Vue.js + Capacitor for an application that manages camps for students of Wrocław University of Science and Technology. The project includes a Django backend and a Vue.js frontend.
- src/ - The main source directory of the application.
- assets/ - Static resources such as CSS styles and images.
main.css- Main application styles.variables.css- CSS variables for the theme.
- components/ - Vue components used in the application.
ExampleComponent.vue- Example component.
- router/ - Application routing configuration.
index.js- Application route definitions.
- store/ - Application state management (Pinia).
- App.vue - The main application component.
- main.js - The application's entry point.
- assets/ - Static resources such as CSS styles and images.
- public/ - Public files that are directly accessible (e.g.,
index.html). - package.json - Project configuration file containing dependencies and scripts.
- vite.config.js - Configuration for the Vite tool.
- Node.js
- npm
- Clone the repository:
git clone <REPO_URL>
cd oboz_studentow_pwr_frontend- Install dependencies:
npm install- Set environment variables with API URL:
export VITE_API_URL='http://localhost:8000/api/'
export VITE_WS_API_URL='ws://localhost:8000/'- Make sure API server is running.
- Run the app
ionic serve- Add the below environment variables to the API server. It will disable throttling for tests:
ANON_THROTTLE_RATE = 'None'
USER_THROTTLE_RATE = 'None'- Run the following commands in the terminal:
npx cypress open- in second terminal run:
ionic serve