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

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

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