/nodejs-middleware-express-api-template

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.

Primary LanguageJavaScript

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
}