structure to your application ➔ Brings MVC on client side – model, view, collections, router ➔ One hard dependency underscore.js ➔ For RESTful persistence and DOM manipulation , include json2.js, and either jQuery ( >= 1.7.0) or Zepto. ➔ Used by LinkedIn, Foursquare, WunderKit, Groupon,etc. More at http://backbonejs.org/#examples
does not have any opinions. ➔ Provides helpful methods to manipulate and query your data. ➔ Backbone does not force you to use a single template engine. ➔ Scales well eg. disqus widget and usatoday.com ➔ Works well with other libraries Get more information at http://backbonejs.org/#FAQ-why-backbone
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.
pop etc. ✔ Built on underscore.js Look at collection.html Books = Backbone.Collection.extend({ localStorage : new Store('books-collection'), model : Book }) var books = new Books(); books.push(new Book());
HTML ✔ HTML comes from templates. ✔ Works with any template library ✔ Manipulates a DOM ✔ Has a Model / Collection look at view.html BooksView = Backbone.View.extend({ el : $('#main'), initialize : function(){ this.books = new Books(); this.books.on('all',this.render,this); this.books.fetch(); }, render : function(){ this.$el.html(this.template(this)); return this; } });
and bookmarking ✔ Starting point of application Router = Backbone.Router.extend( routes : { "" : "index", }, index : function(){ console.log('in index()....'); var booksView = new BooksView(); this.el.empty(); this.el.append(booksView.render().el); }}); var router = new Router({el : $($('#main'))}); Backbone.history.start();
VIRTUALIZATION (RHEV) OPERATING SYSTEM (RHEL) APPLICATION PLATFORM (JBOSS, PHP, RUBY, ETC) APPLICATION Automated and Managed by the Public or Private Cloud Offering Managed and Controlled by Customer (IT, Dev, or User) IaaS PaaS SaaS Increased Control Increased Automation
i.e. to write code. You develop “Cloud Aware” applications from the beginning. Improves developer productivity. Reduces cost and time to market. Brings agility to product development. Gives developers the power to prototype their ideas rapidly.
catch? OpenShift is free-as-in-beer & free-as-in-freedom You get three free gears, each with 512MB memory and 1GB of disk space. Need more resources, just ask! The catch is we are in developer preview right now
code and any data store. Has to be on 1 or more gears 2. Gear – is like a server. It can have only 1 language for the web programming. 3. Cartridge – it adds a language, a data store, or other functionality 4. Git – used for version control and managing code between server and your development machine 5. Ssh – command line tool to connect to your gear
tools are easy to use 3. You should be ready to write services 4. Almost anything you need on a server 5. Did I mention – Free 6. Source code https://github.com/shekhargulati/bookshop-bootcamp- rest-quickstart Conclusion