A simple example of JWT authorization (with really big help of my friend Adam Siekierski <3 )
If you want to use this example as base in your project, you have to:
- pull this repo
- install modules
- add
.env
file - set package.json as you want to
- run
npm develop
- HAVE FUN !!!
That's all what you have to do!
It is scheme of .env file
JWT_KEY=your_secret_key
DB_NAME=name_of_your_db
DB_PASS=password_to_db
(You have to change host in database.js too)
Aleksander Skubała (with help of Adam Siekierski)
MIT
Free Software, Hell Yeah!