How to install nodejs

Last modified: April 30, 2022

Go to Nodejs Official Website to download for your operating system.

Install Nodejs


Follow the instruction and install nodejs

Install package

npm install express sequelize mysql2 cors jsonwebtoken bcryptjs --save;
  • Express => to create WebAPI
  • sequelize & mysql2 => ORM and connecting to MySQL
  • jsonwebtoken => generate JWT token
  • bcryptjs => encryption
npm install -g nodemon -D
  • -D indicate the package is only for Development
  • use of nodemon allow to modify the application an view live without out restarting the application
  • Update package.json file
"scripts": { "start": "node index.js", "dev": "nodemon index.js", "test": "echo \"Error: no test specified\" && exit 1" },
npm i -g sequelize-cli
  • sequelize-cli use to create database/model/migration tools