This repository is the backend part of a game called the mole.
It was made as a student project for the student exhibition showtime.
For more information see our showtime page.

For python/virtualenv setup see this page. We need at least python 3.6.
To install Django and socketio activate your virtualenv and execute pip install -r requirements.txt inside augmented-boardgame/mole_backend.
- Download and install PostgreSQL: https://www.enterprisedb.com/downloads/postgres-postgresql-downloads
- Deactivate Stackbuilder
- Port: 5432 (Default)
- Install 'psycopg2' package, so Django can use the PostgreSQL database:
pip install psycopg2 python manage.py migratepython manage.py createsuperuser- Don't forget .env file for access to the local postgre
python3 manage.py runserver- Install Heroku cli
heroku login- Authenticate via browser
- Set remotes to git repo
heroku git:remote -a testmapbranch
git remote rename heroku heroku-staging
heroku git:remote -a ab-backend- push your branch: feat/yourfeat to the remote staging heroku
The Heroku staging git-repo is called testmapbranch.
Test if the branch works on this repo.
git push heroku-staging feat/yourfeat:master- check https://testmapbranch.herokuapp.com/ if it works
- Merge feature in master
- push to master
git push heroku master- should be working on master https://ab-backend.herokuapp.com/
See here for more information.