Back|API BoilerplateLive Preview
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 check
POST/api/auth/registerRegister user
POST/api/auth/loginLogin
GET/api/usersList users (admin)
GET/api/users/meCurrent user
PUT/api/users/meUpdate profile

Prisma 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
}