By Mike Wilson
Read Online or Download Building Node Applications with MongoDB and Backbone: Rapid Prototyping and Scalable Deployment PDF
Approximately This Book
Understand how net 2. zero is made via robust browser-based applications
Step-by-step instructional that might convey you ways quickly, advanced internet purposes may be built
Who This ebook Is For
This ebook is predicated on Meteor 1. zero.
- AngularJS: Novice to Ninja: Elegant, Powerful, Testable, Extendable
- del.icio.us Mashups
Extra resources for Building Node Applications with MongoDB and Backbone: Rapid Prototyping and Scalable Deployment
In any database system, the end goal is always writing data—usually, persisting it to a disk—and reading it back out again. info Example 4-1 demonstrates a simple session in MongoDB. No special setup is required at any step of the way—all that was needed here was to install MongoDB and run it, then connect using the mongo client. Once connected to MongoDB, I immediately start‐ ed using a database that I called newdb, but I didn’t have to do anything to set it up: all I needed to do was to start writing data.
This example shows how to wire up a router that listens for certificate requests such as #/certificates/123 and #/certificates/mycertificatename, then creates a view for the given certificate using the CertificateView object created in Example 3-5. In this simplified example, CertificateView doesn’t actually accept any parameters, but if it did, id would contain 123 or mycertificatename if the sample URLs were used. info | 25 Example 3-5. info CHAPTER 4 MongoDB When it comes to NoSQL databases, it is hard to beat the ease of use offered by Mon‐ goDB.
Js The RequireJS text plug-in; you will use it to load textual content from the templates folder for the view rendering public/js/views This folder contains the view objects used by the Backbone application. css The stylesheet used to control how HTML elements are laid out in your user’s web browser public/templates This folder contains the HTML templates, which will be rendered by the views into web pages displayed in the browser. js views/ This folder contains the Jade templates, which are rendered by the Express server and sent to the client.