Skip to Main Content
Single Page Web Applications
book

Single Page Web Applications

by Michael Mikowski, Josh Powell
September 2013
Intermediate to advanced content levelIntermediate to advanced
432 pages
12h 10m
English
Manning Publications
Content preview from Single Page Web Applications

Chapter 8. The server database

This chapter covers
  • The role of the database in an SPA
  • Using JavaScript as the database language with MongoDB
  • Understanding the Node.js MongoDB driver
  • Implementing CRUD operations
  • Using JSV for data validation
  • Pushing data changes to the client with Socket.IO

This chapter builds on code we’ve written in chapter 7. We recommend copying the entire directory structure for that chapter into a new “chapter_8” directory and updating the files there.

In this chapter, we add the database to our SPA for persistent data storage. This completes our vision of using JavaScript end-to-end—on the database, the server, and the browser. When we’re finished, we’ll be able to start our Node.js server application ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Mastering JavaScript Single Page Application Development

Mastering JavaScript Single Page Application Development

Philip Klauzinski, John Moore

Publisher Resources

ISBN: 9781617290756Publisher SupportOtherPublisher WebsiteSupplemental ContentErrata PagePurchase Link