Node.js
- JavaScript runtime environmentCurl
- Command line tool and library for transferring data with URLsPino
- Very low overhead Node.js logger.Pino-http
- Pino-http is a middleware for HTTP frameworks like Express.jsm that integrates Pino with web applications.Pino-pretty
- basic prettifier to make log lines human-readable.
Helmet.js
- Helmet helps secure Express apps by setting HTTP response headersStoppable
- Stoppable stops accepting new connections and closes existing, idle connections (including keep-alives) without killing requests that are in-flightJq
- The jq utility is a powerful way to format and query JSON data
- npm init -y
- npm install --save-dev --save-exact prettier
- npm install --save-dev eslint
- npm install --save pino pino-pretty pino-http
- npm install --save express cors helmet compression
- npm install --save stoppable
- npm install --save-dev nodemon
Script | Use |
---|---|
npm run lint | Run eslint and make sure there are no errors that need to be fixed |
npm start | Start the application with node |
npm run dev | Start the application in dev mode using nodemon with log level debug |
npm run debug | Start the application in debug mode using nodemon with log level debug |