Skip to content

0xStryK3R/Sample-Flask-Postgres-Project

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

Flask Project Using Postgres DB

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published