Skip to content

A template Node.js using Express.js, Morgan for logs, Helmet for security, Express rescue to get some errors, middleware of auth and error, routes and services.

Notifications You must be signed in to change notification settings

luizcalaca/nodejs-middleware-express-api-template

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Template Node.js

Using Morgan, Helmet, Cors, Express rescue, Express rate limit and others middlewares.

How to run

npm run dev

Routes

GET http://localhost:3000/people
GET http://localhost:3000/people/1
POST http://localhost:3000/people
GET http://localhost:3000/people/search?name=Luiz

HEADERS
-username
-password
-authorization

POST JSON example
{
    "name": "Luiz",
    "age": 32
}

About

A template Node.js using Express.js, Morgan for logs, Helmet for security, Express rescue to get some errors, middleware of auth and error, routes and services.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published