API for various networked Flashpoint tasks
A PostgreSQL server for database operations.
Install python requirements through pip3 install -r app/requirements.txt
(You may wish to use a venv instead)
For production deployments install gunicorn. Examples are linked in the Running and Maintenance section below. pip3 install gunicorn
Make a copy of app/config.py.example into app/config.py and open it for editing
Change the secret key to an appropriate random string
Change the database URI to the correct form of your postgresql database. Example - postgresql://user:pass@host:port/db
Run in a development environment with python3 -m fp_api
Run in a production environment with gunicorn. Various setups suggested here.
Upgrade your database tables with the python3 manage.py db upgrade
Produce database revisions with python3 manage.py db migrate (-m <message>)