Clasiv Backend is a scalable ERP-style backend designed with a modular architecture. A Backend build for:
- Runtime: Nodejs (Bun)
- Language: TypeScript
- Architecture: Monolith, Service–Repository Pattern
- Validation: Zod
- Auth: JWT (Access + Refresh Tokens)
The backend follows a Service–Repository pattern:
Router → Controller → Service → Repository
- Router → Handles Sub-Routes
- Controller → Handles HTTP requests
- Service → Business logic
- Repository → Database queries
- Schemas → Validation (Zod)
bun installCreate a .env file:
DATABASE_URL=
JWT_SECRET=
REFRESH_TOKEN_SECRET=bun run devContributions are welcome. Feel free to open issues or submit pull requests.