This is a small application that allows admins to add/remove points to 4 harry potter houses (Gryffindor, Slything, Ravenclaw and Hufflepuff). It is built using python3 + flask (web framework) + google appengine (runtime) + firestore (database).
This is only possible if you are an owner of the google project (only myself at this point). You'll need to have installed the gcloud command line tool.
$ gcloud app deploy
If you want to run the server locally, all you need is python3 and pip.
Please make sure to not forget export FLASK_ENV=development
when running the development server, if not you will talk to the remote database.
- Create a python virtualenv with the right dependencies (
pip install virtualenv
if you don't have virtualenv) - pip install the requirements
- run the local server
$ virtualenv venv # create a virtualenv called "venv"
$ source venv/bin/activate # activate it
$ pip install -r requirements.txt # install the requirements in it
$ export FLASK_ENV=development && python main.py # run the server in it