flask-tutorial/
Pick any file or folder on the left to see what it is, why it exists, when you add it and the mistakes people make with it. Switch the stage to watch the project grow.
# Flask has no generator: create the folder and project file with uv
uv init --bare flask-tutorial && cd flask-tutorial && git init && uv python pin 3.14# Add Flask and create the package folders from the tutorial
uv add flask && mkdir -p flaskr/templates flaskr/static tests# Create the tutorial database and run the dev server
uv run flask --app flaskr init-db && uv run flask --app flaskr run --debug# Add the database layer, forms and the API when the app grows
uv add flask-sqlalchemy flask-migrate "psycopg[binary]" flask-wtf flask-smorest python-dotenv# Create the migrations folder and the first migration
uv run flask db init && uv run flask db migrate -m "initial" && uv run flask db upgrade# Add test and lint tools
uv add --dev pytest pytest-cov factory-boy ruff mypy pre-commit# Add the production server and protection
uv add gunicorn flask-limiter redis sentry-sdk