Skip to content

Latest commit

 

History

History
26 lines (19 loc) · 393 Bytes

README.md

File metadata and controls

26 lines (19 loc) · 393 Bytes

Make sure you export these two env vars:

export SECRET_KEY="foobar"
export DATABASE_URL="postgresql://localhost/swagify"

To run the api server, use the following command:

python manage.py runserver

To perform DB migrations:

python manage.py db init
python manage.py db migrate
python manage.py db upgrade

Get a read of DB rows:

SELECT COUNT(*) FROM item;