Skip to content

Latest commit

 

History

History
41 lines (31 loc) · 1.01 KB

README.md

File metadata and controls

41 lines (31 loc) · 1.01 KB

Basic Template NodeJS

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)

⚠️ You need XAMPP to run this back locally. ⚠️
If you button "Got to Application doesn't work :"
http://localhost/phpmyadmin/