https://github.com/caseybaggz/node-auth-api
Simple bootstrap for creating a node-based auth API
https://github.com/caseybaggz/node-auth-api
api express jwt node passportjs
Last synced: 3 months ago
JSON representation
Simple bootstrap for creating a node-based auth API
- Host: GitHub
- URL: https://github.com/caseybaggz/node-auth-api
- Owner: caseybaggz
- Created: 2018-09-26T14:12:23.000Z (almost 8 years ago)
- Default Branch: master
- Last Pushed: 2018-09-26T14:25:33.000Z (almost 8 years ago)
- Last Synced: 2025-01-15T02:41:38.888Z (over 1 year ago)
- Topics: api, express, jwt, node, passportjs
- Language: JavaScript
- Size: 38.1 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
Node Auth API Bootstrap
========================
Basic node project with setup for making a node-based API using JWT with Passport.js and mongoose.
### What's included
- a dev server instance at localhost:3090
- Pre configured **JWT** with **Passport.js** to handle token based routing with local settings for login
- Simple starter routes for obtaining a token and utilizing your mongoose store for login-based access
- A protected route using pre-built middleware with **bcrypt**
### What you'll need
- Your mongoose creds
- A .env or config file for JWT secret
### Setup
- Clone repo
- cd into repo and run `yarn`
- run `yarn start` to fire up dev server