This chapter will cover both the cloud deployment of our blog application and a short discussion on building a mobile HTML5 version of our application. The cloud deployment will be to a free account on RedHat’s OpenShift platform. The mobile discussion will cover the steps needed to build a mobile version of the blog application that will run on any mobile device and can be distributed through the respective mobile application stores. The mobile version will use the same REST services that we use for the cloud version of our blog application.
Before we deploy our blog application to the cloud, we will set up a local project in NetBeans that we will later use to deploy our blog to OpenShift. We can also run and test our blog application locally before pushing it to the cloud. All the code for this chapter has already been written and can be downloaded from GitHub. We will walk through the code and discuss the changes that have been made to our AngularJS application to allow for a deployment to the cloud.
Our cloud deployment uses Node.js as the server platform, ExpressJS as the web application framework, and MongoDB as the database. We will discuss how AngularJS integrates with all three of these to form a MEAN (MongoDB, ExpressJS, AngularJS, and Node.js) stack deployment. We will primarily focus on the role that AngularJS plays in a MEAN stack application.
We will not cover the Node.js code in great detail. Although the Node.js ...