Web app with login
For apps with user signup and login, data in a database, and a public web UI or API. Check layer by layer; each item links to the matching topic.
1. Architecture foundations
- Recommended Choose the architecture shape; small teams start with a monolith → Monolith vs. microservices
- Recommended Clear layering and dependency injection → Layered architecture
- Recommended Follow the twelve-factor practices → Twelve-factor app
2. Data
- Recommended Pick the right database → Relational vs. NoSQL
- Required Schema changes go through migrations → Database migrations
- Recommended Common queries have indexes → Indexes
- Required Multi-step writes use transactions → Transactions
- Recommended Use a connection pool → Connection pooling
- Recommended Use ORM and raw SQL where each fits → ORM
3. APIs
- Recommended Consistent API design → REST API design
- Required Validate all input → Input validation
- Recommended Unified error format → Error handling
- Recommended Idempotent create/payment endpoints → Idempotency
- Required Rate limiting → Rate limiting
- Recommended Paginate list endpoints → Pagination
- Recommended API versioning → API versioning
- Recommended External calls have timeouts, retries, and circuit breakers → Timeouts, retries, and circuit breakers
4. Supporting services
- Recommended Slow work and cross-system notifications go through a message queue → Message queue
- Recommended Database writes and outbound messages stay consistent → Transactional outbox
- Recommended Use Redis for caching, locks, and counters → Redis
- Recommended Scheduled and background jobs → Background and scheduled jobs
- As needed Full-text search → Search engine
- As needed File uploads go to object storage → Object storage
- As needed Real-time push → Real-time communication
5. Security
- Required Keep authentication and authorization separate → Authentication and authorization
- Required Store password hashes → Password hashing
- Required Pick the right session approach → JWT and sessions
- As needed Third-party login / single sign-on → OAuth2, OIDC, and SSO
- Recommended Role-based permissions → RBAC
- Required Defend against common attacks → Common web attacks
- Required Secrets stay out of code → Secrets management
- Recommended Audit logs for critical actions → Audit log
6. Performance
- Recommended Caching (confirm the bottleneck first) → Caching
7. Launch and operations
- Required Structured logging → Logging
- Recommended Health checks and graceful shutdown → Health checks
- Recommended CI/CD automation → CI/CD
- Recommended Config separated by environment → Configuration and environments
- Recommended Production errors are trackable → Error tracking
- Recommended Automated tests exist → Testing strategy
How to use this with AI
Before generating a project, paste this checklist to the AI: “Design against the following checklist and explain how each item is implemented; for anything not implemented, state the reason clearly.”