GithubHelp home page GithubHelp logo

emcaoxuan22 / role-based-access-control Goto Github PK

View Code? Open in Web Editor NEW

This project forked from trulymittal/role-based-access-control

0.0 0.0 0.0 47 KB

This is a Role Based Access Control application using Nodejs, Express, Passport Js, etc.

Shell 0.66% JavaScript 53.20% CSS 19.62% HTML 26.52%

role-based-access-control's Introduction

Role Based Access Control (...still in dev mode...)

This is a Role Based Access Control application using Nodejs, Express, Passport Js, etc. You can use this application as the starting point for whatever project you are going to build which needs authentication and authorization.

For authentication we have only Email & Password option but other authentication options using OAuth/OAuth2.0 like Google, Facebook, Apple, GitHub, etc, can be easily incorporated.

The application is based on the MVC pattern i.e. Model View Controller.

Mongoose is used as an ORM for MongoDB for storing Users in Database.

Passport JS is used for local(email, password) authentication.

The application is almost production ready.


To start setting up the project

Step 1: Clone the repo

git clone https://github.com/trulymittal/role-based-access-control

Step 2: cd into the cloned repo and run:

npm install

Step 3: Put your credentials in the .env file.

PORT=3000
MONGODB_URI=YOUR_MONGODB_URI(example: mongodb://localhost:27017)
DB_NAME=YOUR_DB_NAME

Step 4: Install MongoDB (Linux Ubuntu)

See https://docs.mongodb.com/manual/installation/ for more infos

Step 5: Run Mongo daemon

sudo service mongod start

Step 6: Start the app by

npm start

Author

Contribute

You can fork this repo and send me a PR.

License

This project is licensed under the MIT License.

role-based-access-control's People

Contributors

trulymittal 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.