AngularJS + Cloud Endpoints - ANew Recipe for Building Modern Web Applications
Cloud provides best practices and guidance to web developers who are interested in AngularJS or other client-side MVC technologies and want to optimize their server backend for these technologies. They hold AngularJS with Google Cloud Platform and, in particular, Google Cloud Endpoints, a technology that lets developers expose their backend APIs of Google App Engine applications through service-based API, instantly with simple gloss.
A recent change in web application frameworks has been the switch from Model-View-Controller (MVC) on the server to the MVC on the client. Recent advancements in client-side technology are driving this change in to new level. The result, however, is the challenge of building and creating stylish architect applications that span multiple devices hosted in the cloud.
Android, iOS and browser-based clients are rich development platforms and each one is capable to run a fully-fledged MVC framework. Development of the user interfaces (using MVC) on the client is a more natural architecture that better holds client developers’ skills. The growing popularity of client-side MVC frameworks such as AngularJS is representative of this shifting to the client. These frameworks helps in reducing the complexity and increases the reuse in even the simplest of the applications.
As the UI moves to the client, the server becomes simpler. Server-side developers need not worry about how to construct HTML pages using templates to generate the dynamic content. Rather, they can focus on implementing business logic and data persistence using technologies such as App Engine Data store access and then use a framework to expose services to their applications’ clients.
But the question is how to design and implement these modern web applications.
Google Cloud Endpoints is the answer for this question: a feature of Google App Engine that provides a RPC framework:
Fig 1: Google Cloud Endpoints
Using Cloud Endpoints, developers uncover the public methods of any class as a service endpoint with the addition of simple Java annotations.
And once it is done the next very step is to addresses the integration of Cloud Endpoints with client-side MVC frameworks such as Angular.JS
Fig 2: Client side MVC and Service endpoints Architecture
Here is some of the key benefits of AngularJS + Cloud Endpoints :