A simple but fully functional application with a basic example?

I start working with Backbone, and I am looking for an example application without interference, but with all the key Backbone functions: Routes, Models, Collections, Views and Events.

Ideally, the application will have a workflow like this:

  • The application downloads a list of article titles.
  • The user clicks on the title of the article.
  • The view changes slightly to update the URL and highlight the blog post.

Minimal and simple, but just showing how to use all the key elements, including Routes (which often do not seem to be indicated in the examples, including the official example ).

Basically, I would like something like sample code in this blog post , but (a) bulletproof and (b) with HTML like so that I can copy, paste and start playing with it right away.

Does anyone know of such an example?

+6
source share
3 answers

Maybe https://github.com/addyosmani/backbone-fundamentals (various examples of applications in the Practices directory) is your obligation.

I am also new to the highway. But thanks to Addy Osmani ( http://addyosmani.github.com/backbone-fundamentals ) I have concepts and working code to understand the backbone.

+3
source

While this is not a blog, my Backbone Store has all the items you request in a didactics, literate programming tutorial. As an added bonus, there is also a version of Coffeescript / HAML / Stylus on the same website.

0
source

I found this tutorial extremely useful by creating my own single page application using Backbone.js ... http://coenraets.org/blog/2011/12/backbone-js-wine-cellar-tutorial-part-1-getting -started /

There are additional parts to help you get started with CRUD functions and fine tuning, etc.

0
source

Source: https://habr.com/ru/post/908894/


All Articles