An open API service indexing awesome lists of open source software.

https://github.com/jacobgrisham/authentication

Creating authentication in Node.js using passport.js and MongoDB
https://github.com/jacobgrisham/authentication

authentication back-end-web-development expressjs javascript mongodb mongoose nodejs passportjs

Last synced: 3 months ago
JSON representation

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

Awesome Lists containing this project

README

          

# Authentication
### Coding challenge from the Udemy Course [the Web Developer Bootcamp](https://www.udemy.com/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
- Section 34: Authentication of the Udemy Course [the Web Developer Bootcamp](https://www.udemy.com/course/the-web-developer-bootcamp/)