https://flask.palletsprojects.com/en/3.0.x/quickstart/
Create Python venv.
python -m venv .venv
Then activate.
. .venv/bin/activate
Upgrade pip and install dependencies.
pip install --upgrade pip setuptools
pip install poetry
poetry install --sync --no-root
poe start
Open http://127.0.0.1:5000 in your browser.
poe debug
start the app in debug mode.
Install volta (if not exists)
curl https://get.volta.sh | bash
Install npm packages
npm ci
poe test
Execute tests
npm run test
- A Minimal Application
- Debug Mode
- HTML Escaping
- Routing
- Variable Rules
- Unique URLs / Redirection Behavior
- URL Building
- HTTP Methods
- Static Files
- Rendering Templates
- Accessing Request Data
- Context Locals
- The Request Object
- File Uploads
- Cookies
- Redirects and Errors
- About Responses
- APIs with JSON
- Sessions
- Message Flashing
- Logging
- Hooking in WSGI Middleware
- Using Flask Extensions
- Deploying to a Web Server
- Project Layout
- Application Setup
- Define and Access the Database
- Blueprints and Views
- Templates
- Static Files
- Blog Blueprint
- Make the Project Installable
- Test Coverage
- Deploy to Production
- pytest
- e2e test via Playwright
- pre-commit
- linter/formatter
- security check: *.py