Skip to content

Instantly share code, notes, and snippets.

@r0b1n1sl4m
Last active October 22, 2022 12:32
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save r0b1n1sl4m/a538dfa4e0a76b978e7e37f9d3e525bd to your computer and use it in GitHub Desktop.
Save r0b1n1sl4m/a538dfa4e0a76b978e7e37f9d3e525bd to your computer and use it in GitHub Desktop.
Flask boilerplate project structure
├──app/ #main application
├──inc/ #utils
├──__init__.py
├──db.py #initiate sqlalchemy
├──util.py #common functions
├──models/ #data models
├──__init__.py
├──home_model.py #remove on needs
├──routes/
├──__init__.py
├──home_routes.py #remove on needs
├──static/
├──css/
├──style.css
├──images/
├──js/
├──main.js
├──templates/
├──home.html #remove on needs
├──main.html #main container
├──__init__.py
├──app.py #app file
└──settings.py #configuration
├──env/ #virtual environment
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment