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

https://github.com/tobisamcode/express_auth_session_boilerplate

A repo on setting up Passport with Express
https://github.com/tobisamcode/express_auth_session_boilerplate

Last synced: 9 months ago
JSON representation

A repo on setting up Passport with Express

Awesome Lists containing this project

README

          

# express_auth_session_boilerplate

### NodeJS (Express) Authentication with Passport
A repo on setting up Passport with Express

### Prerequisites

Ensure you have the following installed on your local machine:

- [NodeJS](https://nodejs.org/en/download/)
- [MongoDB](https://www.mongodb.com/download-center/community) or [Mongo Atlas](https://www.mongodb.com/download-center/cloud)

## Technologies Used

- [NodeJS](https://nodejs.org/en/download/)
- [ExpressJS](https://expressjs.com/)
- [MongoDB](https://www.mongodb.com/download-center/community)
- [PassportJS](http://www.passportjs.org/)

### Installing/Running locally

- Clone or fork repo

```bash
- git clone 'your desired repo name'
- cd 'the desired repo name'
- npm install
- git checkout [your-desired-branch]
```

- Create/configure `.env` environment with your credentials. A sample `.env.example` file has been provided to get you started. Make a duplicate of `.env.example` and rename to `.env`, then configure your credentials (ensure to provide the correct details).

- Run `nodemon app` to start the server and watch for changes