Skip to main content

Real-World Wiring

This page outlines how to structure a production-ready Quik application without referencing a specific internal project.

Suggested path

  1. Define AppModule and register core modules first.
  2. Add HTTP + adapter modules to expose routes.
  3. Add database + entity modules for persistence.
  4. Add auth, logging, telemetry as needed.
  5. Keep configuration in a single place and load via getConfig().

Example structure

src/
app/
AppModule.ts
config/
index.ts
http/
routes/
modules/
users/
models/
services/
routes/
main.ts

Operational notes

  • Register modules in dependency order.
  • Keep module-level configuration in src/config.
  • Use separate routes, models, and services folders per domain.