Creating and deploying Express web applications using Node.js and MongoDB cartridges
In this recipe, you will build a Node.js application from scratch using the Express web framework and MongoDB. I have chosen Express because it is very easy to use and is a popular web framework in the Node community. You can run any other web framework, such as Geddy, on OpenShift as well.
You will develop a job store application that will allow users to post job openings for a company. The application will be a single-page web application (http://en.wikipedia.org/wiki/Single-page_application) built using the Backbone.js (http://backbonejs.org/) frontend. The application can do the following:
- When a user goes to the
/
URL of the application, the user will see a list of companies stored in the MongoDB database. Behind the scenes, the Backbone.js-based frontend will make a REST HTTP GET ('/api/v1/companies'
) call to fetch all the companies: - Users can create a new company by visiting
http://jobstore...