SlideShare a Scribd company logo
Create MVC application
using Backbone js
Presenter: Padmalochan, Mindfire Solutions
Date: 14/04/2014
Presenter: Padmalochan, Mindfire Solutions
Agenda

Why should we use backbone.

Quick review about basics of Backbone.

Preparing server side code.

Getting data efficiently.

Foundation and adding a view.

Client-Side Templating.

Creating app from Scratch.
Presenter: Padmalochan, Mindfire Solutions
SPA

Single Page Applications.

No round tripping

Loads all of resources at one go.

Its a concept not proper defination.

Rich user experience.

Net latency is reduced.

Performance is increased.
Presenter: Padmalochan, Mindfire Solutions
SPA Challenges

Search Engine Optimization.

Lack of tooling and experience.

Working with different browser
Presenter: Padmalochan, Mindfire Solutions
Prerequisites

Basics of Javascript.

HTML,CSS,Web programming knowledge.

JQuery.

FireBug,WebKit.
Required Dependencies

Underscore.

Jquery/Zepto.
Presenter: Padmalochan, Mindfire Solutions
What is Backbone js?
Backbone.js gives structure to web applications
by providing Models with key-value binding and
custom events,Collections with a rich API of
enumerable functions,Views with declarative
event handling, and connects it all to your
existing API over a RESTful JSON interface.
http://backbonejs.org/
Presenter: Padmalochan, Mindfire Solutions
Why to use Backbone

It encourages you to abstract your data into models and
your DOM manipulation into views and bind the two
together using events.

Need to Build complex UI in Browser.

No More jQuery,no need to store data in DOM, store
data in models instead event binding just works.

If what you plan to build is something where the UI
regularly changes how it displays but does not go to the
server to get entire new pages then you probably need
something like Backbone.js.

Provides a structure into client side application
Before and After effects of Backbone
Presenter: Padmalochan, Mindfire Solutions
Presenter: Padmalochan, Mindfire Solutions
Architecture
Pros :
1. Fast
2. Highly Interactive.
3. Scalable
Cons:
1. SEO problem (can't
index)
2. Difficult to test
3. Security issues.
1. Routers
2. Models
3. Collection
4. Views
Presenter: Padmalochan, Mindfire Solutions
Models

Models are the heart of any JavaScript application, containing the
interactive data as well as a large part of the logic surrounding it:
conversions, validations, computed properties, and access control.

Communicate to View through events.

Provide LifeCycle.

Read attribute with get method and write with set method.

Validation – Validate & isValid

Model Identity

Defaults,initialize.

Backbone.Model vs Backbone.Model.extend

Model have save,fetch and destroy methods for synchronizing with the
server
Presenter: Padmalochan, Mindfire Solutions
Collection

Collections group of related model.

Fetch model from server.

Create them and save them back.

Array like object.
Presenter: Padmalochan, Mindfire Solutions
Views

The general idea is to organize your interface into logical views,
backed by models, each of which can be updated independently when
the model changes, without having to redraw the page

Handles Model events as well as DOM events.

All views have associated el property.

$el is a Jquery wrapper.

Every view maps to exact one DOM element

Render the UI as you see fit.

Declarative syntax to register handlers for DOM elements.
Presenter: Padmalochan, Mindfire Solutions
Templating

Underscore.js Template.

Client-side templatating.Templating happens in views render method.

Dynamically build markup from template and some data.

Backbone doesn't have its own templating engine.
Underscore Templates

<%.... %> - execute arbitary code.

<% ...%> - evaluate an expression and render in result inline.

<% ...%> - evaluate an expression and render html escaped in result inline.
Presenter: Padmalochan, Mindfire Solutions
Demo
Presenter: Padmalochan, Mindfire Solutions
Question and
Answer
Presenter: Padmalochan, Mindfire Solutions
Thank you
www.mindfiresolutions.com
https://www.facebook.com/MindfireSolutions
http://www.linkedin.com/company/mindfire-solutions
http://twitter.com/mindfires

More Related Content

PDF
ColdFusion 11 New Features
PPT
Search Engine Optimization
PPTX
Writing HTML5 Web Apps using Backbone.js and GAE
PDF
Structuring web applications with Backbone.js
PPTX
Introduction to MVC Web Framework with CodeIgniter
PPTX
List of 7 popular java frameworks for 2019
PDF
Web Development Presentation
PPT
PHP Frameworks and CodeIgniter
ColdFusion 11 New Features
Search Engine Optimization
Writing HTML5 Web Apps using Backbone.js and GAE
Structuring web applications with Backbone.js
Introduction to MVC Web Framework with CodeIgniter
List of 7 popular java frameworks for 2019
Web Development Presentation
PHP Frameworks and CodeIgniter

What's hot (20)

PDF
Component based architecture
PPS
Codeigniter, a MVC framework for beginner
PDF
5 best Java Frameworks
PDF
Building Web Application Using Spring Framework
ODP
JMP103 : Extending Your App Arsenal With OpenSocial
PPT
Single Page Application presentation
PDF
CodeIgniter - PHP MVC Framework by silicongulf.com
PPTX
Lightning web components
PPTX
JavaScript MVC Frameworks: Backbone, Ember and Angular JS
PDF
Micro frontend: The microservices puzzle extended to frontend
PPTX
MVC & CodeIgniter
PDF
JavaCro'14 - Vaadin web application integration for Enterprise systems – Pete...
PDF
Developing WordPress Plugins : For Begineers
PDF
5 Evoq Features You Didn't Know Existed
 
ODP
JMP102 Extending Your App Arsenal With OpenSocial
PPTX
Getting Started with Lightning Web Components | LWC | Salesforce
PDF
The Best IBM Bluemix Training From myTectra in Bangalore
PDF
DNN Launch Webinar: DNN Platform 8.0 and Evoq 8.3
 
PPTX
PHP Frameworks & Introduction to CodeIgniter
PPTX
Give Your Java Apps “The Boot” With Spring Boot And Cloud Foundry
Component based architecture
Codeigniter, a MVC framework for beginner
5 best Java Frameworks
Building Web Application Using Spring Framework
JMP103 : Extending Your App Arsenal With OpenSocial
Single Page Application presentation
CodeIgniter - PHP MVC Framework by silicongulf.com
Lightning web components
JavaScript MVC Frameworks: Backbone, Ember and Angular JS
Micro frontend: The microservices puzzle extended to frontend
MVC & CodeIgniter
JavaCro'14 - Vaadin web application integration for Enterprise systems – Pete...
Developing WordPress Plugins : For Begineers
5 Evoq Features You Didn't Know Existed
 
JMP102 Extending Your App Arsenal With OpenSocial
Getting Started with Lightning Web Components | LWC | Salesforce
The Best IBM Bluemix Training From myTectra in Bangalore
DNN Launch Webinar: DNN Platform 8.0 and Evoq 8.3
 
PHP Frameworks & Introduction to CodeIgniter
Give Your Java Apps “The Boot” With Spring Boot And Cloud Foundry
Ad

Viewers also liked (20)

PDF
MVC Seminar Presantation
PPTX
Integration of Backbone.js with Spring 3.1
PDF
JAX 2012: Moderne Architektur mit Spring und JavaScript
PDF
Firebase and AngularJS
PDF
Modern Architectures with Spring and JavaScript
PDF
Integrate Spring MVC with RequireJS & Backbone.js & Spring Data JPA
PDF
Intro to Front End Development with Angular + Firebase
PPTX
Node.js Workshop - Sela SDP 2015
PPTX
Rest with Java EE 6 , Security , Backbone.js
PDF
Burgas Conf 21.06.2014 - Single page application Angularjs and Nodejs
KEY
MVC on the server and on the client
PPTX
Node js introduction
PPTX
Introduction to Node js
PDF
Best node js course
PDF
AngularJS application architecture
PPTX
Introduction to Angularjs
PDF
Node.js 101
PDF
AngularJS - What is it & Why is it awesome ? (with demos)
PDF
AngularJS Basics with Example
PPTX
AngularJS Architecture
MVC Seminar Presantation
Integration of Backbone.js with Spring 3.1
JAX 2012: Moderne Architektur mit Spring und JavaScript
Firebase and AngularJS
Modern Architectures with Spring and JavaScript
Integrate Spring MVC with RequireJS & Backbone.js & Spring Data JPA
Intro to Front End Development with Angular + Firebase
Node.js Workshop - Sela SDP 2015
Rest with Java EE 6 , Security , Backbone.js
Burgas Conf 21.06.2014 - Single page application Angularjs and Nodejs
MVC on the server and on the client
Node js introduction
Introduction to Node js
Best node js course
AngularJS application architecture
Introduction to Angularjs
Node.js 101
AngularJS - What is it & Why is it awesome ? (with demos)
AngularJS Basics with Example
AngularJS Architecture
Ad

Similar to Creating MVC Application with backbone js (20)

PPT
Angular Seminar-js
PPTX
MVC & backbone.js
PPTX
Spring tutorials
PPTX
Noman Khan Internship Report 2.pptx
DOC
mahesh3yrs
PPT
MVC Demystified: Essence of Ruby on Rails
PDF
Getting Started with Spring Framework
DOCX
DotNet 5.1Years Experience
PPTX
Programming is Fun with ASP.NET MVC
PPTX
Javascript from beginning to modern
PDF
From Backbone to Ember and Back(bone) Again
DOCX
Parvathi_latest_resume(2016)
DOC
KiranGara_JEE_7Yrs
PPTX
Introduction to single page application with angular js
PDF
Resume_Rahul_Gavade
PDF
Full Stack Developement Course in Indore.pdf
PPTX
Planbox Backbone MVC
DOC
HARI 1.8 RESUME
PPTX
Angular js workshop
DOC
Angular Seminar-js
MVC & backbone.js
Spring tutorials
Noman Khan Internship Report 2.pptx
mahesh3yrs
MVC Demystified: Essence of Ruby on Rails
Getting Started with Spring Framework
DotNet 5.1Years Experience
Programming is Fun with ASP.NET MVC
Javascript from beginning to modern
From Backbone to Ember and Back(bone) Again
Parvathi_latest_resume(2016)
KiranGara_JEE_7Yrs
Introduction to single page application with angular js
Resume_Rahul_Gavade
Full Stack Developement Course in Indore.pdf
Planbox Backbone MVC
HARI 1.8 RESUME
Angular js workshop

More from Mindfire Solutions (20)

PDF
Physician Search and Review
PDF
diet management app
PDF
Business Technology Solution
PDF
Remote Health Monitoring
PDF
Influencer Marketing Solution
PPT
High Availability of Azure Applications
PPTX
IOT Hands On
PPTX
Glimpse of Loops Vs Set
ODP
Oracle Sql Developer-Getting Started
PPT
Adaptive Layout In iOS 8
PPT
Introduction to Auto-layout : iOS/Mac
PPT
LINQPad - utility Tool
PPT
Get started with watch kit development
PPTX
Swift vs Objective-C
ODP
Material Design in Android
ODP
Introduction to OData
PPT
Ext js Part 2- MVC
PPT
ExtJs Basic Part-1
PPT
Spring Security Introduction
Physician Search and Review
diet management app
Business Technology Solution
Remote Health Monitoring
Influencer Marketing Solution
High Availability of Azure Applications
IOT Hands On
Glimpse of Loops Vs Set
Oracle Sql Developer-Getting Started
Adaptive Layout In iOS 8
Introduction to Auto-layout : iOS/Mac
LINQPad - utility Tool
Get started with watch kit development
Swift vs Objective-C
Material Design in Android
Introduction to OData
Ext js Part 2- MVC
ExtJs Basic Part-1
Spring Security Introduction

Recently uploaded (20)

PDF
Nekopoi APK 2025 free lastest update
PDF
Design an Analysis of Algorithms I-SECS-1021-03
PDF
Why TechBuilder is the Future of Pickup and Delivery App Development (1).pdf
PDF
Raksha Bandhan Grocery Pricing Trends in India 2025.pdf
PPTX
Introduction to Artificial Intelligence
PDF
Claude Code: Everyone is a 10x Developer - A Comprehensive AI-Powered CLI Tool
PDF
How to Choose the Right IT Partner for Your Business in Malaysia
PDF
SAP S4 Hana Brochure 3 (PTS SYSTEMS AND SOLUTIONS)
PDF
medical staffing services at VALiNTRY
PPTX
CHAPTER 12 - CYBER SECURITY AND FUTURE SKILLS (1) (1).pptx
PDF
Audit Checklist Design Aligning with ISO, IATF, and Industry Standards — Omne...
PPTX
ManageIQ - Sprint 268 Review - Slide Deck
PPTX
Agentic AI : A Practical Guide. Undersating, Implementing and Scaling Autono...
PDF
Digital Strategies for Manufacturing Companies
PDF
System and Network Administration Chapter 2
PDF
top salesforce developer skills in 2025.pdf
PDF
Which alternative to Crystal Reports is best for small or large businesses.pdf
PDF
Internet Downloader Manager (IDM) Crack 6.42 Build 42 Updates Latest 2025
PDF
Softaken Excel to vCard Converter Software.pdf
PPTX
L1 - Introduction to python Backend.pptx
Nekopoi APK 2025 free lastest update
Design an Analysis of Algorithms I-SECS-1021-03
Why TechBuilder is the Future of Pickup and Delivery App Development (1).pdf
Raksha Bandhan Grocery Pricing Trends in India 2025.pdf
Introduction to Artificial Intelligence
Claude Code: Everyone is a 10x Developer - A Comprehensive AI-Powered CLI Tool
How to Choose the Right IT Partner for Your Business in Malaysia
SAP S4 Hana Brochure 3 (PTS SYSTEMS AND SOLUTIONS)
medical staffing services at VALiNTRY
CHAPTER 12 - CYBER SECURITY AND FUTURE SKILLS (1) (1).pptx
Audit Checklist Design Aligning with ISO, IATF, and Industry Standards — Omne...
ManageIQ - Sprint 268 Review - Slide Deck
Agentic AI : A Practical Guide. Undersating, Implementing and Scaling Autono...
Digital Strategies for Manufacturing Companies
System and Network Administration Chapter 2
top salesforce developer skills in 2025.pdf
Which alternative to Crystal Reports is best for small or large businesses.pdf
Internet Downloader Manager (IDM) Crack 6.42 Build 42 Updates Latest 2025
Softaken Excel to vCard Converter Software.pdf
L1 - Introduction to python Backend.pptx

Creating MVC Application with backbone js

  • 1. Create MVC application using Backbone js Presenter: Padmalochan, Mindfire Solutions Date: 14/04/2014
  • 2. Presenter: Padmalochan, Mindfire Solutions Agenda  Why should we use backbone.  Quick review about basics of Backbone.  Preparing server side code.  Getting data efficiently.  Foundation and adding a view.  Client-Side Templating.  Creating app from Scratch.
  • 3. Presenter: Padmalochan, Mindfire Solutions SPA  Single Page Applications.  No round tripping  Loads all of resources at one go.  Its a concept not proper defination.  Rich user experience.  Net latency is reduced.  Performance is increased.
  • 4. Presenter: Padmalochan, Mindfire Solutions SPA Challenges  Search Engine Optimization.  Lack of tooling and experience.  Working with different browser
  • 5. Presenter: Padmalochan, Mindfire Solutions Prerequisites  Basics of Javascript.  HTML,CSS,Web programming knowledge.  JQuery.  FireBug,WebKit. Required Dependencies  Underscore.  Jquery/Zepto.
  • 6. Presenter: Padmalochan, Mindfire Solutions What is Backbone js? Backbone.js gives structure to web applications by providing Models with key-value binding and custom events,Collections with a rich API of enumerable functions,Views with declarative event handling, and connects it all to your existing API over a RESTful JSON interface. http://backbonejs.org/
  • 7. Presenter: Padmalochan, Mindfire Solutions Why to use Backbone  It encourages you to abstract your data into models and your DOM manipulation into views and bind the two together using events.  Need to Build complex UI in Browser.  No More jQuery,no need to store data in DOM, store data in models instead event binding just works.  If what you plan to build is something where the UI regularly changes how it displays but does not go to the server to get entire new pages then you probably need something like Backbone.js.  Provides a structure into client side application
  • 8. Before and After effects of Backbone Presenter: Padmalochan, Mindfire Solutions
  • 9. Presenter: Padmalochan, Mindfire Solutions Architecture Pros : 1. Fast 2. Highly Interactive. 3. Scalable Cons: 1. SEO problem (can't index) 2. Difficult to test 3. Security issues. 1. Routers 2. Models 3. Collection 4. Views
  • 10. Presenter: Padmalochan, Mindfire Solutions Models  Models are the heart of any JavaScript application, containing the interactive data as well as a large part of the logic surrounding it: conversions, validations, computed properties, and access control.  Communicate to View through events.  Provide LifeCycle.  Read attribute with get method and write with set method.  Validation – Validate & isValid  Model Identity  Defaults,initialize.  Backbone.Model vs Backbone.Model.extend  Model have save,fetch and destroy methods for synchronizing with the server
  • 11. Presenter: Padmalochan, Mindfire Solutions Collection  Collections group of related model.  Fetch model from server.  Create them and save them back.  Array like object.
  • 12. Presenter: Padmalochan, Mindfire Solutions Views  The general idea is to organize your interface into logical views, backed by models, each of which can be updated independently when the model changes, without having to redraw the page  Handles Model events as well as DOM events.  All views have associated el property.  $el is a Jquery wrapper.  Every view maps to exact one DOM element  Render the UI as you see fit.  Declarative syntax to register handlers for DOM elements.
  • 13. Presenter: Padmalochan, Mindfire Solutions Templating  Underscore.js Template.  Client-side templatating.Templating happens in views render method.  Dynamically build markup from template and some data.  Backbone doesn't have its own templating engine. Underscore Templates  <%.... %> - execute arbitary code.  <% ...%> - evaluate an expression and render in result inline.  <% ...%> - evaluate an expression and render html escaped in result inline.
  • 15. Presenter: Padmalochan, Mindfire Solutions Question and Answer
  • 16. Presenter: Padmalochan, Mindfire Solutions Thank you