MakeUofT 2020 site for Canada's largest makeathon.
Make sure you have Python 3 and pip installed.
In terminal:
cd .. .. ..
python3 -m venv venv
source venv/bin/activate
pip install -r requirements.txt
python main.py
You will also need to have docker and docker-compose installed, or have a local mysql server running.
Activate the virtual environment:
source venv/bin/activate
Start the database:
docker-compose up -d
-d
suppresses the output, in can be omitted if you want to check on the database.
Run migrations:
flask db upgrade
Seed the database:
flask seed seedall
This will cause issues if ran multiple times on the same database. If you want to re-seed your database, first destroy the container with
docker-compose down
and re-create it withdocker-compose up -d
.
Run the application:
python main.py
Make changes in a descriptively-named branch, and submit a pull request to this repo. It must be approved by at least one contributor to be merged to master, which is protected. New features should have unit tests.