This is a simple web app. It has login/register functionality.
It uses passport for user authentication,bcrypt for password hashing and mongo(with mongoose) for the database part
- MongoDB(without restricted access)
Clone repo.Then open a terminal and type npm install.After eveyrthing is completed you can now run npm start.
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
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