Code Monkey home page Code Monkey logo

advancing-safely-class-nodebr's Introduction

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!

advancing-safely-class-nodebr's People

Contributors

dependabot[bot] avatar robertosousa1 avatar snyk-bot avatar

Stargazers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.