Skip to content

About

New version of OSoMe stats page

Resources

Stars

0 stars

Watchers

1 watching

Forks

Latest commit

 

History

9 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 

Repository files navigation

OSoMe Stats Page

The OSoMe Stats Page uses Django for the backend and Vue 3 with Vite for the frontend.

Prerequisites

Installation

Clone the Repository

git clone https://github.com/sarahbeverton/stats-page.git
cd stats-page

Frontend Setup (Vue3/Vite)

  1. Navigate to the frontend directory:
cd frontend
  1. Install the dependencies:
npm install
  1. 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.

  1. To build the project for production, run:
npm run build

The build output will be in the 'dist/' directory.

Backend Setup (Django)

  1. Navigate to the backend directory:
cd backend
  1. 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/

  1. Apply the database migrations - in the same directory where manage.py is located, run:
python manage.py migrate
  1. Create a superuser:
python manage.py createsuperuser

This will create a superuser and can be used to log in to the application.

  1. Run the development server:
python manage.py runserver

The backend will be available at http://localhost:8000.

About

New version of OSoMe stats page

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages