Config folder
Path: hono-backend/src/config/
Config files run at startup. They answer: “Are we configured correctly?” and “Can we reach the database?”
| File | Job |
|---|---|
| env.ts | Read .env, validate secrets, export env object |
| db.ts | mongoose.connect, sync indexes |
| permissions.ts | Admin role → allowed actions map |
No HTTP routes live here.
Last updated on