Skip to content

mihs/backbone-graph

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

backbone-graph

Lightweight library for Backbone model relations.

Overview

Enables One-to-One, One-to-Many and Many-to-Many relations for Backbone models.

Written with the following goals in mind

  • Lightweight but support the basic relation types. If something more complicated is needed then it should be written in the application layer.
  • Models are instantiated only once.
  • A data store that contains all the Backbone models.
  • Ability to update/add an entire subgraph of models by setting the attributes directly on the data store (e.g. when an update comes through a real time update mechanism such as socket.io, just apply it to the datastore).

Usage

See tests until docs are written.

Test

make test

TODO

  • More tests
  • Docs
  • cleanup the code, refactor

Related libraries

About

Lightweight Backbone library for model relations

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors