Skip to content

A login system made with Node, Express, MongoDB, Passport and related technologies.

Notifications You must be signed in to change notification settings

WilliamRiveraRamos/nemp-login

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

28 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

NEMP login

NEMP (Node, Express, MongoDB, Passport) is a login system that you can easily implement on your web app. The web app was made with Node, Express, MongoDB, Passport and related technologies.

Use

  1. Clone this repo
  2. Install all dependencies on package.json
  3. Install MongoDB
  4. Create a /data directory on nemp-login directory
  5. Open terminal
  6. cd to C:\Program Files\MongoDB\Server\4.0\bin
  7. Enter mongod.exe --dbpath="c:\projects\nemp-login\data"
  8. Open another terminal
  9. cd to C:\Program Files\MongoDB\Server\4.0\bin
  10. Enter mongo.exe
  11. Open terminal and cd to nemp-login directory
  12. Enter app.js
  13. Open your browser and go to localhost:3000
  14. Click Sign Up and create an account
  15. Enter the username and password you just created to login
  16. Now you have access to the Secret Page

Click Logout and try to access the Secret Page (localhost:3000/secret) and you are redirected to login page because you don't logged in yet.

MongoDB shell

  1. Go to the terminal where you have mongo.exe running.
  2. Enter show dbs to see if the database has been created.
  3. Enter use nempDB to swith to that database.
  4. Enter show collections
  5. Enter db.users.find() to see the username and password you just created.

That's all, You are set!

Resources

Install MongoDB Community Edition on Windows

Working with the mongo Shell

About

A login system made with Node, Express, MongoDB, Passport and related technologies.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published