First, start json server https://github.com/typicode/json-server/ npm install -g json-server json-server --watch db.json --port 3004