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.
- Host: GitHub
- URL: https://github.com/luizcalaca/nodejs-middleware-express-api-template
- Owner: luizcalaca
- Created: 2022-06-12T02:03:32.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2022-06-13T03:39:01.000Z (over 3 years ago)
- Last Synced: 2025-06-08T10:41:51.770Z (4 months ago)
- Topics: body-parser, cors, express-js, express-rate-limit, express-rescue, express-rest-api, helmet, middleware, morgan, nodejs
- Language: JavaScript
- Homepage:
- Size: 135 KB
- Stars: 6
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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=LuizHEADERS
-username
-password
-authorizationPOST JSON example
{
"name": "Luiz",
"age": 32
}```