Skip to content

Latest commit

 

History

History
29 lines (21 loc) · 1.18 KB

README.md

File metadata and controls

29 lines (21 loc) · 1.18 KB

Sample Flask Project Using Postgres DB | Visitor Count

  1. Rename sample_config.py to config.py, and update with your own SQLALCHEMY_DATABASE_URI and desired SECRET_KEY.

  2. Run below command inside project directory to setup environment

    python -m venv venv
  3. Activate enviroment with below command (for Windows):

    venv\Scripts\activate
  4. Run below command next to install required modules plus dependencies defined in requirements.txt

    pip install -r requirements.txt
  5. Run below command to start the app:

    python app.py
  6. 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.