SyncUQ aims to be the first University of Queensland exclusive schedule sharing platform. Users will be able to share their timetables with friends and get live updates of when their friends are free. It also has the bonus functionality of allowing users to plan meetings with one another.
- Python 3.6
- Docker
- Heroku
- Ruby
python3 -m venv .venvsource .venv/bin/activatepip3 install -r ./requirements.txt
export FLASK_DEBUG=1export FLASK_APP=app.py
docker run --name suq_db -d -e POSTGRES_PASSWORD=postgres -p 5432:5432 postgres:9.6.2
sudo gem install sass
./run.shto compile the frontend and boot a development Flask instance, not using Gunicorn
To migrate the db, all you have to do is make changes like you normal would to the models.py file. Then run
flask db migrateto generate a migration file andflask db upgradeto change the db to the new schema
now the db should be properly formatted and work.
Run
heroku run bash --app syncuq-stageto get into bash on heroku
then inside bash
export FLASK_APP=app.py
then, assuming you have pushed the migrations file created from migrating locally, just run this command to get the server side db to upgrade
flask db upgrade
if something goes wrong, there is a good chance you can fix it by running the following
rm -r migrationsdelete the migrations folderflask db initremake the migrations folderflask db migratecreate the migrationflask db upgradeperform the migration
To typecheck:
mypy run.py
