A JavaScript Express v5 starter template with sensible defaults. For a TypeScript starter see the express-api-starter-ts
How to use this template:
pnpm dlx create-express-api@latest --directory my-api-name
Includes API Server utilities:
- morgan
- HTTP request logger middleware for node.js
- helmet
- Helmet helps you secure your Express apps by setting various HTTP headers. It's not a silver bullet, but it can help!
- cors
- CORS is a node.js package for providing a Connect/Express middleware that can be used to enable CORS with various options.
Development utilities:
- eslint
- ESLint is a tool for identifying and reporting on patterns found in ECMAScript/JavaScript code.
- vitest
- Next generation testing framework powered by Vite.
- zod
- Validated env with zod schema
- supertest
- HTTP assertions made easy via superagent.
pnpm install
pnpm run lint
pnpm test
pnpm run dev