A starter Express.js REST API using JavaScript, in-memory storage, and Swagger UI docs.
- Express 4 with
/api/v1/moviesCRUD - Input validation via Zod
- Centralized error handling
- Health check at
/api/health - API docs at
/docs(Swagger UI) - Local-only (no Docker, no auth)
npm install
cp .env.example .env
npm run devVisit:
- API root:
http://localhost:3000/api/health - Docs:
http://localhost:3000/docs
curl http://localhost:3000/api/health
curl -X POST http://localhost:3000/api/v1/movies \
-H "Content-Type: application/json" \
-d '{"title":"The Matrix","year":1999}'
curl "http://localhost:3000/api/v1/movies?page=1&limit=5&q=matrix"