we need to use "npm init" to initialize npm package manager for our repository
console.log("This is the first command in server.js"); console.log("as a dev dependency : npm i express -D"); console.log("as a production dependency : npm i express"); console.log("Node Monitoring Tool : npm i nodemon -D"); console.log("To Install All Modules present in package.json : npm i");
"version": "1.0.0", Major:Minor:Patch NPM - npm cli (command line interfaces)
To Clone in your own machine -
go to any directory where you want to clone and run below
git clone https://github.com/MishraAshish/MERNStack10.git
To run the node api MERNStack10 cd - node-server run - npm i then - npm start
MERNStack10 cd - reactapp run - npm i then - npm start
important : npm i -command is used to install all dependencies mentioned in package.json important : npm i -command is used to install module in the project
git clone for the first time
subsequent times we need to run - git pull
http://localhost:9000/getproducts - a get api
npm init - to initialize the project npm install or npm i - to install module dependency npm uninstall or npm u - to uninstall module dependency npm install -DEV or npm i -DEV -> to install module dependency
if you have changes in your machine - so either you resolve that or use git reset --hard and then take git pull
git clean -fd git pull
when we do clone in our own repo git init git add README.md git add . git commit -m "first commit" git remote add origin https://github.com/MishraAshish/MERNStack10.git git push origin master