If cloning from GitHub:
- clone repository
- cd to local repository
- Delete the node_modules folder and any 'lock' files such as
- yarn.lock or package-lock.json if present.
npm install
frontend folder needs this package installed:
npm install react-router-dom
backend folder needs these packages installed:
npm install --save-dev nodemon
npm install express body-parser concurrently
Update the frontend/package.json with the "proxy" code:
"proxy": "http://localhost:4000/",
See the package.json file for npm run scripts.
If starting from scratch: Initialize a React App:
npx create-react-app frontend
or
npm init react-app ./frontend
Initialize the Node backend:
mkdir backend
cd backend
npm init -y
To run app:
- cd to backend
npm run dev