update claude.md
This commit is contained in:
1 parent
7991f3f6a1
commit
9fecfa562f
1 file changed
+16
-12
@@ -68,19 +68,23 @@ VITE_APP_LOG_LEVEL="debug"
|
|||||||
### Backend Layers
|
### Backend Layers
|
||||||
```
|
```
|
||||||
server/src/
|
server/src/
|
||||||
├── controllers/ # Route handlers (authController, monitorController, etc.)
|
├── api/ # HTTP layer
|
||||||
├── service/ # Business logic
|
│ ├── controllers/ # Route handlers (authController, monitorController, etc.)
|
||||||
│ ├── business/ # Core monitoring logic
|
│ ├── middleware/ # verifyJWT, rateLimiter, sanitization, responseHandler
|
||||||
│ ├── infrastructure/ # Server/system utilities
|
│ ├── routes/ # API route definitions
|
||||||
│ └── system/ # App-level settings
|
│ └── validation/ # Zod request-payload schemas
|
||||||
|
├── domain/ # Business logic + data access, one folder per entity
|
||||||
|
│ ├── monitors/ # e.g. monitor.service.ts, monitor.repository.ts, monitor.type.ts
|
||||||
|
│ ├── checks/
|
||||||
|
│ ├── incidents/
|
||||||
|
│ └── … # users, teams, status-pages, notifications, etc.
|
||||||
|
├── service/ # Cross-cutting services (e.g. infrastructure/)
|
||||||
|
├── config/ # App config wiring (controllers, routes, services, envValidation)
|
||||||
├── db/
|
├── db/
|
||||||
│ ├── models/ # Mongoose schemas (Monitor, Check, Incident, User, etc.)
|
│ └── migration/ # Database migrations (run on startup)
|
||||||
│ ├── migration/ # Database migrations (run on startup)
|
├── templates/ # Email/notification templates
|
||||||
│ └── modules/ # Database-specific modules
|
├── types/ # Shared const tuples + derived types
|
||||||
├── middleware/v1/ # verifyJWT, rateLimiter, sanitization, responseHandler
|
└── utils/ # Shared utilities
|
||||||
├── routes/v1/ # API route definitions
|
|
||||||
├── validation/ # Joi input validation schemas
|
|
||||||
└── repositories/ # Data access layer
|
|
||||||
```
|
```
|
||||||
|
|
||||||
### Frontend Structure
|
### Frontend Structure
|
||||||
|
|||||||
Reference in new issue
Block a user