Any client-server interaction typically boils down to sending HTTP requests to a server and receiving responses from a server. For heavy JavaScript apps, we depend on the AJAX request/response mechanism to communicate with the server. To support AJAX-based communication, Angular provides the Angular HTTP module. Before we delve into the HTTP module, we need to set up our server platform that stores the data and allows us to manage it.
For data persistence, we use a document database called MongoDB (https://www.mongodb.org/), hosted over MongoLab (https://mongolab.com/), as our data store. The reason we zeroed in on MongoLab is that it provides an interface to interact with the database directly. This saves us the effort of setting up server middleware to support MongoDB interaction.