Node instructions check versions node -v and npm -v
React instructions: Installation
- npm install -g create-react-app
- create-react-app projectmanager //// npm config set registry="http://registry.npmjs.org" --->> to reset config
- npm start
- npm uuid
- npm install jquery --save
- npm install mssql
- npm install --save jsonfile
- go to directory folder cd Projects\React\
- go back cd\ or cd Projects
- node jsname.js in cmd.exe
create package.json file ---- manifest file of your app 1.npm init
- set main or entry point to app.js
- npm install --save mssql ---- save as dependency in package.json
- npm install -g nodemon ---- avoid restarting server manually globally
updating node.js
- npm cache clean -f
- npm install -g npm
- npm install npm@latest -g
material ui instructions
- npm install @material-ui/core
- npm install @material-ui/icons
git bash repo instructions:
- open git bash exe
- cd ( go to directory folder using git cmd) cd /c/ReactVS/React-Node-Sql
- git init
- git remote add origin (Get Link in github.com account in repository)
- git -v
- git remote -v
- git add .
- git commit -m "Name of the File"
- git push origin master
git bash update instructions
-
open git bash exe
-
cd ( go to directory folder using git cmd) cd c:\ReactVS\Node-React-1.0
-
git status
-
git add .
-
git commit -m "Description of changes"
-
git status (check updates)
-
git push origin master
-
git remote rm origin -- add version and renew link in github.
-
git config --get remote.origin.url ----- check current github url
node server
- npm init -y ------ create package json file
- npm i express
- npm i -D nodemon
- npm install -g live-server
- npm install mssql
- create a .env file
- create a package.json file
- In windows press "Ctrl + ~" to open terminal
- npm init
- copy initial codes in package.json and read always in comments
- npm install node-env-run nodemon npm-run-all express-pino-logger pino-colada --save-dev a.) npm install //// to install all packages written in package.json or click extension icon in the left pane and search for a specific package desired.
- npm run server //// to run webservice files from server.
- npm start //// to run react application.
- npm run dev //// to run both node server and react application.
- npm install -g json-server "start": "react-scripts start & json-server --watch sample.json --port 3004" //// put in package.json to run json files..
- npm install --save react-router-dom
- json-server --watch sample.json --port 3004
- npm i concurrently --save-dev
- concurrently --kill-others "npm run start" "npm run json:server" //// multiple server run together.