A blueprint of a flask based web application that uses Tailwind CSS for front end design.
By default, the application has an in memory database memrepo with exactly one user:
WARNING: You should add a preferred data base. Since repo abstracts all data base accesses, it should be easy to replace the memrepo with any other database.
python3 -m venv venv
. venv/bin/activate
pip install -r requirements.txt
tailwindcss init
Each time a style in a template is changed, the following command must be run to extend the main.css file
tailwindcss -i ./app/static/src/main.css -o ./app/static/dist/main.css --minify
Start the application:
with flask (for development):
flask --debug run --host "0.0.0.0"
with gunicorn (for production):
gunicorn --workers 4 --bind 0.0.0.0:8000 wsgi:app
Kudos to the ones described how to do things. Without you, I would not be able to create this blueprint that quick.