First, install the dependencies:
npm install
# or
yarn install
and then run the development server:
npm start
# or
yarn start
and your local server will be running on http://localhost:3000
and finally, run the fake API server:
npx json-server --watch db.json --port 4000
# or
yarn json-server --watch db.json --port 4000
and your fake API server will be running on http://localhost:4000
Open http://localhost:3000 with your browser to see the result.