The purpose of this repo is only to demonstrate how to build a simple REST API (Blog and authorization) with Flask.
- MySQL support
- Migrations
- Authorization with JWT key
- Flask-RestPlus integration
- Swagger UI
I recommend using virtualenv
and virtualenvwrapper
to isolate packages.
Use pip to install the packages in the requirements file:
$ pip install -r requirements.txt
To run the app, the database must be initialized:
$ set FLASK_APP=rest_demo/run.py
$ flask db upgrade
Just run the included script using python:
$ python rest_demo/run.py