Skip to content

caseybaggz/node-auth-api

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

Simple bootstrap for creating a node-based auth API

Topics

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

No releases published

Packages

 
 
 

Contributors