The OSoMe Stats Page uses Django for the backend and Vue 3 with Vite for the frontend.
git clone https://github.com/sarahbeverton/stats-page.git
cd stats-page
- Navigate to the frontend directory:
cd frontend
- Install the dependencies:
npm install
- To serve the frontend locally using Vite, run:
npm run dev
This will start the development server and you can access the application at http://localhost:5173.
- To build the project for production, run:
npm run build
The build output will be in the 'dist/' directory.
- Navigate to the backend directory:
cd backend
- Create and activate the Conda environment:
conda env create -p ./<myvenv> -f environment.yml
conda activate ./<myenv>
This creates and activates a venv at /path/to/project/
- Apply the database migrations - in the same directory where manage.py is located, run:
python manage.py migrate
- Create a superuser:
python manage.py createsuperuser
This will create a superuser and can be used to log in to the application.
- Run the development server:
python manage.py runserver
The backend will be available at http://localhost:8000.