This project was generated with Angular CLI version 8.1.2.
Run ng serve
for a dev server. Navigate to http://localhost:4200/
. The app will automatically reload if you change any of the source files.
npm i json-server
- Goto the project directory.
- on the same directory run below commands: -> json-server --watch fruits.json (this will available laptop json on some port and it will behave like fake server) -> ng serve (this will run your Angular project on port 4200)