API Boilerplate
v1.0.0Running
$curl http://localhost:4000/api/health
{ "status": "ok", "timestamp": "2026-07-05T20:00:00Z" }
Express + TypeScript
Fully typed REST API
JWT Authentication
Secure token-based auth
Rate Limiting
100 req/15min per IP
Swagger Docs
Interactive API docs at /api-docs
API Endpoints
GET
/api/healthHealth checkPOST
/api/auth/registerRegister userPOST
/api/auth/loginLoginGET
/api/usersList users (admin)GET
/api/users/meCurrent userPUT
/api/users/meUpdate profilePrisma Schema
model User {
id String @id @default(cuid())
name String?
email String @unique
passwordHash String?
role String @default("USER")
createdAt DateTime @default(now())
updatedAt DateTime @updatedAt
}