npm install -g json-server
- Install the json-server library that can create an API with just one json file and serve it on one port.
- To up the server, just run this command:
json-server --watch db.json
- And to up the application, just run this command:
ng serve