Skip to content

FlashpointProject/Flashpoint-API

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Flashpoint-API

API for various networked Flashpoint tasks

Requirements

A PostgreSQL server for database operations.

Setup Configuration

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

Running and Maintenance

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

Development

Produce database revisions with python3 manage.py db migrate (-m <message>)

About

API for various networked Flashpoint tasks

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages