Week7 - shenzm/cs5610 GitHub Wiki
On the 7th week, I focus on learning how to host my application on openshift, and access the MongoDB cartridge using Mongoose module. Following are the five experiments I have done:
- RockMongo - Web based MongoDB UI Manager
- Mongoose - Retrieve Data from MongoDB
- Mongoose - Retrieve Data from MongoDB II
- Mongoose - Insert Data into MongoDB
- Mongoose - Remove Data from MongoDB
RockMongo - Web based MongoDB UI Manager
This experiment focus on manipulating/managing mongodb cartridge on openshift using another cartridge named RockMongo
Mongoose - Retrieve Data from MongoDB
This experiment updates last week's experiment. The home page controller retrieves data from the MongoDB by calling the server's API.
Openshift - AgularJS App
This experiment updates last week's experiment. The favorite page controller retrieves favorite relation record from the MongoDB, which calls the server's API.
Openshift - AgularJS App II
This experiment updates last week's experiment. The home page controller insert a favorite relation record into the MongoDB by pressing the "heart" button, which calls the server's API.
Openshift - AgularJS App III
This experiment updates last week's experiment. The favorite page controller can remove a favorite relation record from the MongoDB by pressing the "cross" button, which calls the server's API.
Summary :
This week's experiments, I succeed in using Mongoose module to access the MongoDB through the app that runs on openshift. Mostly, the server side script expose Web API that can manipulate and manage the data records. And the controllers defined in client side scripts can easily invoke these Web API to implement the backend persistence of the web app.