Backbone.js Programming By Example

by Agus Kurniawan 19. May 2014 19:32

thumbnail

I just finished my new book, Backbone.js Programming by Example. This book is a practical guide to Backbone.js programming and provides how to integrate with several web technology such as HTML5, Bootstrap CSS, RequireJS, PHP, Node.js and Socket.io. It describes all the elements of the Backbone API and illustrates their use with code examples. The following is a list of highlight topics:

* Preparing development environment
* Model, View, and Collection
* Events and Model Validation
* Backbone View Templates and Data Binding with case study: Underscore.js, Handlebars, Mustache.js
* Backbone Router
* Interacting with Server: Backbone Sync
* Building Backbone mdular: Backbone.js, Handlebars, and RequireJS
* Case study 1: Building web application with Backbone.js, PHP RESTful and MySQL
* Case study 2: Building web application with Backbone.js, Node.js, Express RESTful, RequireJS and MongoDB
* Case study 3: Building web application with Backbone.js, Node.js, Express and Socket.io

 

Table of Content

1. Preparing Development Environment
1.1 Backbone.js
1.2 Development Tools
1.3 Model View Controller
1.4 Hello World
2. Model, View, and Collection
2.1 Model and View
2.1.1 Creating Model
2.1.2 Setter/Getter for Model
2.1.3 Creating View
2.1.4 Using Model in View
2.2 Collection
2.2.1 Creating Collection
2.2.2 Adding Data
2.2.3 Retrieving Data
2.2.4 Finding Data
2.2.5 Removing Data
2.2.6 Testing
2.3 Working with Model Id
3. Events and Model Validation
3.1 Events
3.1.1 on() and once()
3.1.2 Demo once()
3.1.3 Removing Event
3.1.4 Trigger Event
3.1.5 listenTo(), listenToOnce(), and stopListening()
3.1.6 Events on Backbone View
3.2 Model Validation
4. Backbone View Templates and Data Binding
4.1 View Templates in Backbone View
4.2 Underscore.js
4.2.1 Getting Started
4.2.2 Binding Model and Collection into Template
4.2.3 Binding Model into HTML5 Elements
4.2.4 External Template File
4.2.5 Loading External Template File using jQuery
4.3 Handlebars
4.3.1 Getting Started
4.3.2 Binding Model to Handlebars Template
4.3.3 Binding Model and Collection to Handlebars Template
4.3.4 External Handlebars Template
4.4 Mustache.js
4.4.1 Getting Started
4.4.2 Binding Backbone Collection
4.4.3 External Mustache.js Template
4.5 Deploying Template Files on Web Server
5. Router
5.1 Getting Started
5.2 Dynamic Routing
5.3 Initializing Routers
5.4 Integrating Routers, Models, Collection, and Views
5.4.1 Wrapping Object
5.4.2 Defining Model and Collection
5.4.3 Building Backbone Views
5.4.4 Building Backbone Router
5.4.5 Template and HTML
5.4.6 Testing
5.5 Navigation
6. Interacting with Server: Backbone Sync
6.1 Getting Started
6.2 Case Study: Backbone Sync, PHP, and MySQL
6.2.1 Backbone Model and Collection
6.2.2 Backbone Sync
6.2.3 Backbone View
6.2.4 Backbone Template and HTML5
6.2.5 Database MySQL
6.2.6 Server Application - PHP
6.2.7 Deployment
6.2.8 Testing
7. Backbone Modular: Backbone.js, Handlebars, and RequireJS
7.1 Backbone Modular Using RequireJS
7.2 Case Study: Smartphone Shop
7.2.1 Project Structure
7.2.2 Module Loader
7.2.3 Models and Collections
7.2.4 Backbone Template with Handlebars and HTML5
7.2.4.1 Views
7.2.4.2 Handlebars Templates
7.2.4.3 HTML5 - index.html
7.2.5 Testing
8. Backbone.js, PHP RESTful and MySQL
8.1 Backbone.js on PHP
8.2 Project Structure
8.3 PHP RESTful: Slim Framework
8.3.1 Web Server IIS Windows
8.3.2 Enabling HTTP PUT and DELETE on Web Server IIS
8.3.3 Web Server Apache
8.4 Building Database
8.5 Building Back-End
8.5.1 Handling CRUD
8.5.2 Creating a PHP RESTful
8.6 Building Front-End
8.6.1 Backbone Loader
8.6.2 Backbone Model and Collection
8.6.3 Backbone Views
8.6.4 Handlebars Templates
8.6.5 HTML
8.7 Testing
9. Backbone.js, Node.js, Express RESTful, Require.js and MongoDB
9.1 Backbone.js on Node.js and Express
9.2 Building Database
9.3 Initializing Project
9.4 Project Structure
9.5 Building Back-End
9.5.1 Database Access
9.5.2 Node.js RESTful and Express
9.6 Building Front-End
9.6.1 Backbone Loader
9.6.2 Backbone Model and Collection
9.6.3 Backbone Views
9.6.4 Template and HTML
9.7 Testing
10. Backbone.js, Node.js, Express and Socket.io
10.1 Socket.io, Node.js and Express
10.2 Initializing Project
10.3 Project Structure
10.4 Building Back-End
10.4.1 Generating Stock Data
10.4.2 Node.js, Express and Socket.io
10.5 Building Front-End
10.5.1 Backbone Loader
10.5.2 Backbone Model and Collection
10.5.3 Backbone View
10.5.4 Building HTML with Handlebars Template
10.6 Deployment
10.7 Testing

 

How to Buy

You can obtain this book on the following online bookstore:

Lulu,  http://www.lulu.com/shop/agus-kurniawan/backbonejs-programming-by-example/ebook/product-21633845.html 

Kindle Amazon, http://www.amazon.com/dp/B00KFN16SM 

Google Play Book, https://play.google.com/store/books/details?id=ANuYAwAAQBAJ 

Kobo Store, http://store.kobobooks.com/en-US/ebook/backbone-js-programming-by-example 

Tags:

Backbone | Books | Node.js | PHP

blog comments powered by Disqus

About Agus Kurniawan

Agus Kurniawan

For more detail about me click here [V]

Please entry your name into my guestbook [V]

If you want to contact me, please go here [V]

Go here for my professional services [V]

My Books

Arduino MKRFOX1200 Development Workshop

Teensy Development Workshop Teensy 3.5 and Teensy 3.6 Boards Edition OpenMV Development Workshop

ESPresso Lite V2.0 Development Workshop  MicroPython for ESP32 Development Workshop

Arduino FIO Development Workshop  Getting Started with Android Things for Raspberry Pi 3

Pycom WiPy 2.0 Development Workshop  XBee ZigBee Development Workshop

SparkFun ESP32 Thing Development Workshop Getting Started With BBC micro:bit

Getting Started With Raspberry Pi Zero W Espruino Pico Development Workshop

Getting Started with ASP.NET Core for OS X, Linux, and Windows  Arduino TIAN Development Workshop

SimpleLink Wi-Fi CC3200 LaunchPad Development Workshop  MicroPython for ESP8266 Development Workshop

Smart Internet of Things Projects  Arduino UNO WiFi Development Workshop

XBee Wi-Fi development workshop SparkFun Simblee BLE Development Workshop

Mengenal Microsoft Azure ML Getting Started with Windows 10 IoT Core for Raspberry Pi 3

Arduino and Genuino Zero Development Workshop Go and SQL Server Programming By Example

Arduino and Genuino MKR1000 Development Workshop  Mengenal Microsoft Azure IoT

Getting Started with Raspberry Pi 3 PHP and PostgreSQL Programming By Example

Arduino and Genuino 101 Development Workshop Getting Started with Raspberry Pi Zero

Getting Started with Arduino Wiring for Windows 10 IoT Core Getting Started with Wolfram Language and Mathematica for Raspberry Pi

Arduino Uno: A Hands-On Guide for Beginner Arduino Leonardo and Arduino Micro: A Hands-On Guide for Beginner

RedBearLab CC3200 Development Workshop The Photon Kit Development Workshop

Python Programming by Example Raspberry Pi LED Blueprints

Bluno Beetle Development Workshop BeagleBone Black Programming using Matlab

Arduino Programming using MATLAB Digispark USB Development Workshop

Near Field Communication (NFC) for Embedded Applications Arduino Development for OSX and iOS

SparkFun ESP8266 Thing Development Workshop Teensy Development Workshop

Getting Started with Windows 10 for Raspberry 2 NodeMCU Development Workshop

Getting Started with ASP.NET 5 for OS X, Linux, and Windows Getting Started with Windows Remote Arduino

Redis Programming by Example The Hands-on ARM mbed Development Lab Manual

Getting Started With STM32 Nucleo Development Getting Started with Windows IoT and Intel Galileo

Learning C by Example Getting Started with Raspberry Pi 2

Getting Started with Arduino and Go The Hands-on Arduino Yún Manual Lab

The Hands-on MEAN Lab Manual, Volume 1 Go Programming by Example

Getting Started with Scratch for pcDuino Raspberry Pi Wireless Networks

BeagleBone Black Programming by Example Database Programming Using R

Learning R in 120 Minutes The Hands-on Intel Edison Manual Lab

Getting Started with pcDuino3 TI ARM Cortex-M LaunchPad Programming by Example

Raspberry Pi I/O Programming using Python Getting Started with Intel IoT and Intel Galileo

Pemrograman Java Tingkat Lanjut PHP and MongoDB Programming By Example

ASP.NET SignalR Programming By Example KnockoutJS Programming by Example

Getting Started with Java ME Embedded 8 and Raspberry Pi XBee IEEE 802.15.4 Programming

Raspberry Pi System Programming for Beginner Backbone.js Programming By Example

PHP and SQL Server Programming By Example AngularJS Programming by Example

jQuery Programming by Example Getting Started with Arduino and Ruby

Raspberry Pi Command Line for Beginner Getting Started with Arduino and Python

MSP430 LaunchPad Programming TypeScript Programming by Example

Getting Started with Matlab Simulink and Arduino SQL Server for Node.js

Pocket Reference: Netduino for Beginner Database Programming using Matlab

Pocket Reference: Basic Sensors in Windows 8 Getting Started with Matlab Simulink and Raspberry Pi

Getting Started with Arduino and Java  Pocket Reference: Raspberry Pi Programming

Getting Started with Arduino and Matlab Getting Started with Arduino and .NET

Pocket Reference: Raspberry Pi Getting Started with Arduino and Node.js

MongoDB for VB.NET Panduan Praktis Windows Azure

Network Forensics: Panduan Analisis Dan Investigasi Paket Data Jaringan Menggunakan Wireshark Object-Relational Mapping (ORM): MongoDB, Mongoosejs and Node.js By Example

Nodejs Programming by Example MongoDB for by Example

Pemrograman Parallel Dengan MPI dan C Panduan Lengkap iPad 2 Untuk Pemula

Pemrograman Jaringan Dengan Java Aplikasi Pilihan iPad Untuk Anak-Anak

Buku lainnya [V]

Agus Kurniawan is Microsoft MVP (Most Valuable Professional)

Agus Kurniawan- Github Profile

Agus Kurniawan- Codeplex Profile

Follow Me

Follow agusk2010 on Twitter

Month List