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
- Host: GitHub
- URL: https://github.com/tobisamcode/express_auth_session_boilerplate
- Owner: tobisamcode
- Created: 2022-10-09T02:03:26.000Z (over 3 years ago)
- Default Branch: master
- Last Pushed: 2022-10-14T11:33:30.000Z (over 3 years ago)
- Last Synced: 2025-06-11T22:50:47.444Z (10 months ago)
- Language: JavaScript
- Homepage:
- Size: 24.4 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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