- Install dependencies by running
npm i
at the project root - Install
json-server
by runningnpm install -g json-server
- Use the command
json-server --watch db.json --port 3002
to run thejson-server
- Use the command
npm start
to start the project Runs the app in the development mode. Open http://localhost:3000 to view it in your browser.
Data Source: https://jsonplaceholder.typicode.com