This repository holds the code for part three of the Real Python Python REST APIs With Flask, Connexion, and SQLAlchemy tutorial series.
You should first create a virtual environment:
$ python -m venv venv
$ source venv/bin/activateInstall the pinned dependencies from requirements.txt:
(venv) $ python -m pip install -r requirements.txtThen, navigate into the rp_flask_api/ folder:
(venv) $ cd rp_flask_api
(venv) $ python app.pyTo see your home page, visit http://127.0.0.1:8000. You can find the Swagger UI API documentation on http://127.0.0.1:8000/api/ui.
You can build a SQLite database with content by following the commands below.
Navigate into the rp_flask_api/ folder:
(venv) $ python build_database.pyThis will delete any existing database and create a new database named people.db that you can use with your project.
- Philipp Acsany, E-mail: philipp@realpython.com
Distributed under the MIT license. See LICENSE for more information.