$ docker-compose up -d
$ pip install -r requirements.txt
$ pytest
- PostgreSQL:
docker-compose up -d
or use your own server - Dependencies (see
requirements.txt
) - Flask App Factory Pattern
- Flask CLI: Custom Scripts
- Pytest Fixtures
$ ab -t 5 -c 5 http://localhost:5000/
$ waitress-serve --port=5000 server_falcon:falcon_app
$ waitress-serve --port=5000 server_flask:flask_app
$ gunicorn -b 127.0.0.1:5000 --workers=5 --worker-class=meinheld.gmeinheld.MeinheldWorker server_falcon:falcon_app
$ gunicorn -b 127.0.0.1:5000 --workers=5 --worker-class=meinheld.gmeinheld.MeinheldWorker server_flask:flask_app
- Database testing configuration string