Introduction
In this project, JWT is used for authenticating every request and making our API much more safe and secure.
Usage
-
Clone this repo :
git clone https://github.com/gauravmehla/auth-jwt
-
Then run this command :
bower install && npm install
-
Open another terminal and run
gulp
. Gulp will start and watch for changes. -
Run
npm start
to start express server.
Note :
npm start
will use nodemon. If it isn't installed on your system then run this command first :
`npm install -g nodemon`
- Make sure you have
mongodb
server running in background. If it is not please make sure to run this command first :
`sudo mongod`
If you do not know how to setup mongodb
locally, follow this.