-
Create a Virtual Environment: python -m venv venv
-
Activate Virtual Environment: on windows:- venv\Scripts\activate
On macOS/Linux:- source venv/bin/activate
-
Install Dependencies: pip install flask flask-sqlalchemy flask-restplus
-
Create Database: python
-
Inside python shell: from app import app, db # Import both app and db with app.app_context(): db.create_all() exit()
-
Run Application: python app.py