-
Rename
sample_config.py
toconfig.py
, and update with your ownSQLALCHEMY_DATABASE_URI
and desiredSECRET_KEY
. -
Run below command inside project directory to setup environment
python -m venv venv
-
Activate enviroment with below command (for Windows):
venv\Scripts\activate
-
Run below command next to install required modules plus dependencies defined in
requirements.txt
pip install -r requirements.txt
-
Run below command to start the app:
python app.py
-
All Done!! Click Here to interact with your app:
Assumptions: Python and Postgres DB have been setup and is running prior to starting with this project.
References: For Complete details, please refer
Sending data from a Flask app to PostgreSQL database
for source article for this Repo.