Building Node Applications with MongoDB and Backbone
Год: 2012
Автор: Mike Wilson
Издательство: O'Reilly Media
ISBN: 978-1-4493-3739-1
Язык: Английский
Формат: PDF
Качество: Изначально компьютерное (eBook)
Интерактивное оглавление: Да
Количество страниц: 203
Описание:
Build an application from backend to browser with Node.js, and kick open the doors to real-time event programming. With this hands-on book, you’ll learn how to create a social network application similar to LinkedIn and Facebook, but with a real-time twist. And you’ll build it with just one programming language: JavaScript.
If you’re an experienced web developer unfamiliar with JavaScript, the book’s first section introduces you to the project’s core technologies: Node.js, Backbone.js, and the MongoDB data store. You’ll then launch into the project—a highly responsive, highly scalable application—guided by clear explanations and lots of code examples.
Learn about key modules in Node.js for building real-time apps
Use the Backbone.js framework to write clean browser code, and maintain better data integration with MongoDB
Structure project files as a foundation for code that will arrive later
Create user accounts and learn how to secure the data
Use Backbone.js templates to build the application’s UIs, and integrate access control with Node.js
Develop a contact list to help users link to and track other accounts
Use Socket.io to create real-time chat functionality
Extend your UIs to give users up-to-the-minute information
Introducing Node.js, Backbone.js, and MongoDB
Chapter 1 : Introduction and Overview
Building a Social Network
Model-View-Controller (MVC)
Pure JavaScript
Chapter 2 : Node.js
Installing Node.js
Express
Events
Socket.io
Modules and CommonJS
Chapter 3 : Backbone.js
Model
View
Collection
Router and History
Chapter 4 : MongoDB
Accessing Data
Working with Node.js
Concurrent Access
Building a Social Network
Chapter 5 : Setting Up the Project
Directory Structure
Package Definition
Web Server
Chapter 6 : Authentication
Account
Routing
Registration
Login
Forgot Password
Reset Password
Putting It Together
Chapter 7 : The User Interface
Account Details
Contact List
Activity Stream
Data Model
Putting It Together
Chapter 8 : Making Friends
Contact List
Add Contact
Remove Contact
Commenting
Putting It Together
Chapter 9 : Chat
Refactoring
Connecting to the Chat Server
Sending and Receiving Chat Messages
Putting It Together
Chapter 10 : Activities in Real Time
Adding Custom Events
Contact Login Notification
Status Updates
Putting It Together
Glossary
Colophon