Skip to content

Nekall/template-nodejs-app

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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/