First install node. Once node is installed, install the following packages:
npm install react-dom 17.0.1
npm install react-router-dom 5.2.0
npm install react-scripts 4.0.1
npm install react 17.0.1
npm install json-server 0.16.3
npm install react-router-dom
Starts JSON server. Run this command first.
npx json-server --watch data/db.json --port 8000
After running above JSON server command, open a new terminal and start node.
npm start