Book Image

Learning Underscore.js

By : Alexandru Vasile Pop
Book Image

Learning Underscore.js

By: Alexandru Vasile Pop

Overview of this book

Table of Contents (14 chapters)
Learning Underscore.js
Credits
About the Author
About the Reviewers
www.PacktPub.com
Preface
Index

Chapter 5. Using Underscore.js in the Browser, on the Server, and with the Database

In the previous chapter, we discussed how to use Underscore in the context of two different programming paradigms and explored some of the programming principles behind OOP and FP using a series of code samples.

In this chapter, we will see Underscore in action, applied in separate contexts:

  • In the browser with Underscore templates

  • On the server with Node.js

  • With the MongoDB and PostgreSQL databases

The chapter assumes that you know fundamental jQuery concepts and have some basic notions about web development and server-side and relational database programing in general.

The source code for the examples from this chapter is hosted online at https://github.com/popalexandruvasile/underscorejs-examples/tree/master/browser-server-database, and you can execute the examples using the Cloud9 IDE at the address https://ide.c9.io/alexpop/underscorejs-examples from the browser-server-database folder.