An open API service indexing awesome lists of open source software.

https://github.com/luizcalaca/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.
https://github.com/luizcalaca/nodejs-middleware-express-api-template

body-parser cors express-js express-rate-limit express-rescue express-rest-api helmet middleware morgan nodejs

Last synced: 3 months ago
JSON representation

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.

Awesome Lists containing this project

README

          

### 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
}

```