# PMP Group Backend Rules

Stack:

- Bun
- Hono
- TypeScript

Architecture:

src/

routes/
services/
validators/
middleware/

Requirements:

- Strict TypeScript
- Use Zod validation
- Centralized error handling
- Modular routes
- REST API

Response success:

{
 success:true,
 data:{},
 message:""
}

Response error:

{
 success:false,
 message:""
}

Validation:

name:
required
min 2

email:
valid email

company:
optional

message:
required
min 5

Code style:

- clean architecture
- reusable
- production ready

Never:

- business logic in route
- duplicate validation