Skip to content

TWENTY3andCo/login-register-demo

Repository files navigation

login-register-demo

What is this?

This is a simple web app. It has login/register functionality.

How does this work?

It uses passport for user authentication,bcrypt for password hashing and mongo(with mongoose) for the database part

Prerequisites

  • MongoDB(without restricted access)

How can I run it?

Clone repo.Then open a terminal and type npm install.After eveyrthing is completed you can now run npm start.

More to know

Each user has the user role by default.That means that some areas are not accessible. To create a user with the admin role add their email in the array that is in /configs/admins.js

Use a predifined set of users

In the setup folder there is a file called users.js.There is an array of objects each one containing a name,password,email and role field.Add more users using this schema and then type npm run setup

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published