An open API service indexing awesome lists of open source software.

https://github.com/kunjgit/angular_api

A template to fetch api in angular using HttpClient module and by using service to fetch the data
https://github.com/kunjgit/angular_api

Last synced: 4 months ago
JSON representation

A template to fetch api in angular using HttpClient module and by using service to fetch the data

Awesome Lists containing this project

README

        

### Steps to run this template in your system

- clone the repo by ` git clone https://github.com/kunjgit/Anglar_API.git `
- install dependencies `npm i`
- setup API by the steps give below
- if you don't have angular cli just use command `npm install -g @angular/cli`
- go inside the repo where your code is there for API and just run it on server
- now open another tab of terminal and run this template by using `ng serve`

## Run your Json-server API

Take your json file to anywhere you want then install json-server globally from npm

`npm install -g json-server`

Run API on local

`json-server --watch `