Local Setup
- Clone the project
- Run
setup.sh
Local Development Run
local_run.sh
It will start the flask app indevelopment
. Suited for local development
Replit run
- Go to shell and run
pip install --upgrade poetry
- Click on
main.py
and click button run - Sample project is at https://replit.com/@thejeshgn/flask-template-app
- The web app will be availabe at https://flask-template-app.thejeshgn.repl.co
- Format https://..repl.co
Folder Structure
db_directory
has the sqlite DB. It can be anywhere on the machine. Adjust the path in ``application/config.py`. Repo ships with one required for testing.application
is where our application code is.gitignore
- ignore filesetup.sh
set up the virtualenv inside a local.env
folder. Usespyproject.toml
andpoetry
to setup the projectlocal_run.sh
Used to run the flask application in development modestatic
- defaultstatic
files folder. It serves at '/static' path. More about it is here.static/bootstrap
We have already added the bootstrap files so it can be usedstatic/style.css
Custom CSS. You can edit it. Its empty currentlytemplates
- Default flask templates folder