Skip to content

rjsalicco/express-api-scaffold

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Movies API (Express.js)

A starter Express.js REST API using JavaScript, in-memory storage, and Swagger UI docs.

Features

  • Express 4 with /api/v1/movies CRUD
  • Input validation via Zod
  • Centralized error handling
  • Health check at /api/health
  • API docs at /docs (Swagger UI)
  • Local-only (no Docker, no auth)

Getting Started

npm install
cp .env.example .env
npm run dev

Visit:

  • API root: http://localhost:3000/api/health
  • Docs: http://localhost:3000/docs

Sample Requests

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"

About

Basic Express API Scaffold Project

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published