When installed the project locally with the npm install We need to start the json-server with the following command:
json-server --watch server.json --port 3333
Json server should be installed first, use this command to install globally: npm install -g json-server
Then, run the command to start the project: npm run dev