Repository navigation
ADR 0001 app factory
github-actions[bot] edited this page Oct 15, 2026
·
1 revision
Generated from
docs/adr/0001-app-factory.mdin the repository. Edit it there; this wiki is rebuilt on every change.
Accepted.
The app must run in several modes (local dev, production via Gunicorn, and
tests) and be importable by both run.py and wsgi.py without side effects at
import time.
Use create_app(config_name) that builds and configures a fresh app per call.
Extensions (SQLAlchemy, Login, Bcrypt, Limiter, CSRF) are module-level
singletons initialized inside the factory.
- Clean separation of config environments.
- Tests build an isolated in-memory app.
- Blueprints register in one place; new features are additive.
Repository · Docker Hub · Report a security problem · MIT licence
Start
Deploy
- Deploy on AWS EC2
- Run on Any Cloud
- Configuration
- MQTT Heartbeat
- VPN and Network
- Database Migration
Use
How it is built
Project
Decision records