- 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.
npm install --save multer ///// file uploading .gitignore ///// ignore upload files to git repository