Skip to content

w3cj/express-api-starter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

38 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Express API Starter

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.

Setup

pnpm install

Lint

pnpm run lint

Test

pnpm test

Development

pnpm run dev

About

A basic starter for an express.js API

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published