concept api in category angular

appears as: n API, API, pi, APIs, API
Getting MEAN with Mongo, Express, Angular, and Node.js 2ED

This is an excerpt from Manning's book Getting MEAN with Mongo, Express, Angular, and Node.js 2ED.

Figure 2.7. The short-term view of integrating data into your Node.js application. You can set up your Node.js application to talk directly to your database, or you can create an API that interacts with the database, and have your Node.js application talk only with the API.

Building an API to interface with your data is a bit of a given and the base point of the architecture. The more interesting question is how you architect the application itself.

https://developers.google.com/maps/documentation/javascript/
     get-api-key?utm_source=geoblog&utm_medium=social&utm_campaign=
     2016-geo-na-website-gmedia-blogs-us-blogPost&utm_content=TBC

In this chapter, we’ll discuss how to call an API from within Express and how to deal with the responses. You’ll make calls to the API to read from the database and write to the database. Along the way, we’ll look at handling errors, processing data, and creating reusable code by separating concerns. Toward the end, we’ll cover the various layers of the architecture to which you can add validation and why these different layers are useful.

Start by looking at how to call an API from an Express application.