backbone README

The project's README from github.com/jashkenas/backbone. As one markdown file: README.md.

 ____                     __      __
/\  _`\                  /\ \    /\ \                                   __
\ \ \ \ \     __      ___\ \ \/'\\ \ \____    ___     ___      __      /\_\    ____
 \ \  _ <'  /'__`\   /'___\ \ , < \ \ '__`\  / __`\ /' _ `\  /'__`\    \/\ \  /',__\
  \ \ \ \ \/\ \ \.\_/\ \__/\ \ \\`\\ \ \ \ \/\ \ \ \/\ \/\ \/\  __/  __ \ \ \/\__, `\
   \ \____/\ \__/.\_\ \____\\ \_\ \_\ \_,__/\ \____/\ \_\ \_\ \____\/\_\_\ \ \/\____/
    \/___/  \/__/\/_/\/____/ \/_/\/_/\/___/  \/___/  \/_/\/_/\/____/\/_/\ \_\ \/___/
                                                                       \ \____/
                                                                        \/___/
(_'_______________________________________________________________________________'_)
(_.———————————————————————————————————————————————————————————————————————————————._)

Backbone supplies structure to JavaScript-heavy 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 application over a RESTful JSON interface.

For Docs, License, Tests, pre-packed downloads, and everything else, really, see: https://backbonejs.org

To suggest a feature or report a bug: https://github.com/jashkenas/backbone/issues

For questions on working with Backbone or general discussions: security policy, https://stackoverflow.com/questions/tagged/backbone.js, https://matrix.to/#/#jashkenas_backbone:gitter.im or https://groups.google.com/g/backbonejs

Backbone is an open-sourced component of DocumentCloud: https://github.com/documentcloud

Testing powered by SauceLabs: https://saucelabs.com

Many thanks to our contributors: https://github.com/jashkenas/backbone/graphs/contributors

Special thanks to Robert Kieffer for the original philosophy behind Backbone. https://github.com/broofa

This project adheres to a code of conduct. By participating, you are expected to uphold this code.

backbone (jashkenas/backbone)

mvc
Searching Database…

28.1K ·GitHub
What is this?Backbone.js gives structure to JavaScript-heavy applications through Models with key-value binding and custom events, Collections with a rich enumerable API, and Views with declarative event handling, all tied together by syncing data over a RESTful JSON interface.
Is this a framework or a lightweight library?It's a lightweight library rather than a full framework: it gives you the Model, Collection, and View building blocks for structuring an app but leaves routing style, templating engine, and build tooling choices up to you.
How do I add Backbone to a project?Include backbone.js in your page (or install the npm package) alongside its required Underscore utility library, then wire your Models and Collections to a backend that speaks RESTful JSON.
Do I need another library alongside Backbone?Yes — Backbone's package.json lists Underscore as its only runtime dependency, since Backbone relies on it for enumerable and utility functions.
Does Backbone need a specific kind of backend?By default Backbone's Models and Collections sync over a RESTful JSON API, so your server needs to speak that pattern unless you override the sync method yourself.
What do Collections add on top of Models?Collections are ordered sets of Models that expose a rich set of Underscore-powered enumerable methods (map, filter, sortBy, etc.) plus events for add, remove, and reset actions.
How is Backbone tested?Backbone runs its test suite with Karma plus a separate CoffeeScript model test and ESLint check, with cross-browser testing powered by SauceLabs.
What are similar projects?hyperapp, alpine, vue, svelte, angular.js, vuex, socket.io-client, riot
Creator
jashkenas
Size
26.6 MB
Stars
28.1K
Updated
CommitOct 13
Age
16y
Commits · 90 Days