NodeJS―Express―MySQL
🌱
A simple NodeJS template with :
- Authentication system
↪ Register
↪ Login
(Logout in front, so no need for a logout route, an expiration of the jwt within 24 hours is enough.)
Installed libraries :
- bcrypt
- body-parser
- cors
- express
- jsonwebtoken
- mariadb
- sequelize
- serve-favicon
- (Dev libraries : morgan, nodemon)
NB: responses of this back are in French.
Installation :
Download this repo,
Create ".env" root folder, with inside :
PRIVATE_KEY="CUSTOM_PRIVATE_KEY"
(Custom you key, obviously).
And finally change all "Template" string.
(package.json → change all your infos or reset a package.json with "npm init";
sequelize.js → Name of DB;
home.html → change the text)
―
If you button "Got to Application doesn't work :"
http://localhost/phpmyadmin/