This repository aims at building a website for the Computer Science Department Championship. This is for a proper management (like information backup) for the current and future generations of the Computer Science Association (COM.S.AS) and an online presence to enable real-time statiscs of the champioship to students.
-
Clone the repositiory into your workstation (device/machine) by running the command:
git clone https://github.com/COMSAS-UY1/comsas-football-competion.git
-
Place yourself at the root of the project.
C:\Users\...\comsas-football-competion\
-
Setup the virtual environment for the project at its root by running the following commands:
Creation/Installation
1. pip install virtualenv 2. virtualenv .env
Activation on Windows
3. .env\Scripts\activate
Activation on Linux/MacOS
3. source .env/bin/activate
To deactivate the already activated virtual environment, simply type
deactivate
in the terminal, if not run the following command:Deactivation on Windows
.env\Scripts\deactivate
Deactivation on Linux/MacOS
source .env/bin/deactivate
-
Inside the created and activated virtual environment,
Install
the required packages from requirements.txt by running the command:pip install -r requirements.txt
-
Migrate the data to the database (
Sqllite
by default):python manage.py migrate
-
Run the project using the command:
python manage.py runserver
-
Check the server is running by going to localhost:8000