Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Backbone.js implementation? #317

Open
kctess5 opened this issue May 22, 2014 · 1 comment
Open

Backbone.js implementation? #317

kctess5 opened this issue May 22, 2014 · 1 comment

Comments

@kctess5
Copy link

kctess5 commented May 22, 2014

I'm about to try to use this on a pretty full scale web app that I am making which uses backbone.js very heavily. This seems like something that could go along very well with Backbone as it is basically json driven, but I'm not quite sure where to start.

It seems that a lot of what this library does is hidden behind the scenes, which is great if you are doing something pretty simple, but makes complicated things challenging.

Considering that I am going to have to figure something out for myself, I might as well opensource my changes - I would just like a little bit of direction to get started in the right way so that any new code will play nicely with the old.

To complexify things further, the page that is doing the most intense rendering pulls information from several different MongoDB collections on load, so I will need to figure out how to deal with pathing on the server side.

Please give me your thoughts and suggestions :D

@gurdasnijor
Copy link

Instead of wrapping ShareJS in a Backbone model, I'd recommend using something like racer which is actually backed by ShareJS (https://github.com/codeparty/racer). You get a higher level API that looks almost like a more powerful version of a Backbone model (documented here: http://derbyjs.com/#models)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants