Node.js

Install the following for dev.

  1. https://nodejs.org/en (Node itself)
  2. https://github.com/nvm-sh/nvm (Node Version manager)
    NVM is not supported on Windows so download below:
    https://github.com/coreybutler/nvm-windows

Test installation

node -v
npm -v
nvm -v

Start your project

mkdir first_project
cd first_project
npm init

#To re-download dependencies if required
npm install
npm update

#install packages
npm install --save express
npm install chalk
npm install debug
npm install morgan
npm install mysql

#install template engines
npm install pug
npm install ejs

#uninstall
npm uninstall -g eslint

nodemon

#install
npm i --save-dev nodemon

package.json

#Add "devStart" to package.json 
 "scripts": {
   "test": "echo \"Error: no test specified\" && exit 1",
"devStart": "nodemon server.js"
  },

npmrc

Works well without this.
https://docs.npmjs.com/configuring-npm/npmrc.html

DEBUG=app node app.js

come back later

Install bootstrap using npm

npm install bootstrap jquery

Start app

npm start

sequelize

 

npm install sequelize –save

fsdfsdf

Leave a Reply

Your email address will not be published. Required fields are marked *

Scroll to top