robertosousa1 / advancing-safely-class-nodebr

Code produced in a meetup where I taught about security in the development of APIs in Node.js by NodeBR.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Advancing Safely in Node.js

Code produced during a Meetup at NodeBR, where I taught about security in the Express.js structure of Node.js.

GitHub top language Repository size Repository issues

Technology   |    Prerequisites   |    Getting started   |    Extra links   |    How to contribute   |    License

πŸš€ Technology

  • Express β€” A web framework for Node.js
  • Sqlite β€” Library that implements an embedded SQL database
  • Yup β€” JavaScript schema builder for value parsing and validation.
  • Sentry β€” Open-source error tracking that helps developers monitor and fix crashes in real time.
  • Express Brute β€” A brute-force protection middleware for express routes that rate-limits incoming requests, increasing the delay with each request in a fibonacci-like sequence.
  • Express Rate Limite β€” Rate limiter middleware for express applications.
  • Helmet β€” Helps you secure your Express apps by setting various HTTP headers.
  • Cors β€” Package for providing a Connect/Express middleware that can be used to enable CORS with various options.
  • Express Session β€” Create a session middleware with the given options.

β˜‘οΈ Prerequisites

πŸ†™ Getting started

  • Clone this repo
  • Enter the folder advancing-safely-class-nodebr
  • Run yarn or npm install to install the dependencies
  • Copy the .env.example file and create an .env file with your Redis credentials

🎁 Extra links

  • Snyk β€” Helps you use open source and stay secure. Continuously find and fix vulnerabilities.
  • TLS β€” How to use the module
  • NPM Trends β€” express-brute vs express-limiter vs express-rate-limit
  • Security advisories by the NPM team

✏️ How to contribute

  • Make a fork;
  • Create a branck with your feature: git checkout -b my-feature;
  • Commit changes: git commit -m 'feat: My new feature';
  • Make a push to your branch: git push origin my-feature.

After merging your receipt request to done, you can delete a branch from yours.

πŸ“ License

This project is under the MIT license. See the LICENSE for more information.


Made with by Roberto Sousa πŸ‘‹ Get in touch!

About

Code produced in a meetup where I taught about security in the development of APIs in Node.js by NodeBR.

License:MIT License


Languages

Language:JavaScript 98.9%Language:Shell 1.1%