Acts as an interface between an Application and an API. Fetches data from the API provided by Google and supplies it to an application.
In Case of the Angular CLI, it provides a development server that runs on localhost:4200 by default so if you are using an API that runs on a different domain, you may have CORS issues. In order to overcome this issue, We can fetch the data from the API through this Backend service, then use this data in the Front end Application.
Get from Google API requires Node.js
Install the dependencies and devDependencies and start the server.
$ npm install -d
$ node appRun the app using the following command.
$ npm startGet from Google API is currently extended with the following plugins. Instructions on how to use them in your own application are linked below.
| Plugin | README |
|---|---|
| Axios | [https://www.npmjs.com/package/axios][PlDb] |
| CORS | [https://www.npmjs.com/package/cors][PlGh] |
| Express | [https://www.npmjs.com/package/express][PlGd] |