A simple auth server that uses NodeJs and MongoDB. The server utilizes JSON Web Tokens (JWT) for user authentication. Available actions are: sign-in, sign-out, and create user.
NOTE: You must have a MongoDB setup and running on your system for this to work. Visit HERE for info on setting up a MongoDB.
- Clone or Fork then Clone this repo
git clone https://github.com/scbowler/node_auth_server.git
- Change to the newly created directory
cd node_auth_server
- Install packages
npm install
- Rename the
config.rename.js
file toconfig.js
mv config.rename.js config.js
- Start MongoDB (If not already running)
mongod
- Start server
npm run dev