To start working with the JSDO object, I first needed to make sure that the JSDO objects were set up correctly. Conveniently, David’s code had a simple test method that would open a new JSDO data session and print out some data. With JSDO, this only involved logging in to the ServiceURI, adding the catalog, and calling the fill method. The JSDO fill method would get information from the catalog, which in his case would be returned to the user.
By calling this test method from AngularJS with an http GET request, it was possible to get the JSDO data in a format that AngularJS could easily work with. In other words, through JSDO, I was able to easily send data from MongoDB all the way to AngularJS on a NodeJS server as illustrated (the MongoDB to NodeJS part was handled by David’s code).
Once the data was at the AngularJS level, it could easily be displayed. I decided to just show it in table form using Jade. (David had used a slightly different method, using Serverify, to display his results, but the end result is similar to mine.) You can view the final AngularJS app at http://jsdo-node-angular-22603.onmodulus.net/.
If you are interested in more projects showing what you can do using JSDO, you can see a couple mobile web apps at http://oemobiledemo.progress.com/jsdo/example005/Screen1.html and http://oemobiledemo.progress.com/jsdo/example003/MyPhoneApp.html.