phommata / menu-builder-api

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Python REST API With Flask, Connexion, and SQLAlchemy

You should first create a virtual environment:

$ python -m venv venv
$ source venv/bin/activate

Install the pinned dependencies from requirements.txt:

(venv) $ python -m pip install -r requirements.txt

Then, navigate into the flask_api/ folder:

(venv) $ cd flask_api
(venv) $ python app.py

To 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.

Optional: Build the Database

You can build a SQLite database with content by following the commands below.

Navigate into the flask_api/ folder:

(venv) $ python build_database.py

This will delete any existing database and create a new database named menu.db that you can use with your project.

License

Distributed under the MIT license. See LICENSE for more information.

About


Languages

Language:Python 97.2%Language:HTML 2.8%