Skip to content

Creating authentication in Node.js using passport.js and MongoDB

Notifications You must be signed in to change notification settings

JacobGrisham/Authentication

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Authentication

Coding challenge from the Udemy Course the Web Developer Bootcamp

I wrote the code in app.js and in the views directory. The other files were provided by the instructor.

💡Lessons Learned

  • MongoDB
  • Mongoose
  • bodyparser
  • Express.js sessions
  • Authentication with passport.js

🚀 Getting Started

To run this project locally:

  • In your terminal, navigate to the root folder and run the following commands
$ npm install
$ npm start
  • Open another terminal window nd run the following command
$ ./mongod
  • Open another terminal window nd run the following command
$ mongoose
  • Copy and paste the following into your browser of choice: localhost:3000

🕹 How to Use

  • Sign up, sign in, logout

📣 Reference