First, install the json server
npm install -g json-server
Start the server
json-server --watch db.json
The server will be running at http://localhost:3000
Run the following commands to run the frontend app
npm install # to install the dependencies
npm start # to start the app