Install json-server to serve locally the db.json file to simulate an API npm install -g json-server run the json-server json-server --port=8001 ./db.json