0

If I am building an application with backbone.js, what is the best tool or combo of tools to use for data persistence?

So I cannot answer my own question for another seven hours so I am throwing the answer in here:

I just found a great link to answer my own question. Exactly what I am looking for: http://pixelhandler.com/blog/2012/02/09/develop-a-restful-api-using-node-js-with-express-and-mongoose/

Brian Tompsett - 汤莱恩
  • 5,753
  • 72
  • 57
  • 129
J0NNY ZER0
  • 707
  • 2
  • 13
  • 32
  • 1
    Depends. Why don't you make use of all that extra space in the question box and tell us more about your problem? – jamesmortensen May 06 '12 at 03:10
  • It's a simple question. My apology for not expanding. I come from the land of .NET where server side and client side are more standardized. I recently made the move to a company who scrapes pages and uses backbone to parse the jsondata returned. Do you have a solution that works for you? If so I would appreciate any help you can give. Thanks. – J0NNY ZER0 May 06 '12 at 03:24

3 Answers3

1

If you want something even simpler without the Mongoose dependency I've made a very short example on how to achieve basic persistence with Backbone, Express.js and MongoDB.

https://gist.github.com/1999230

Simen Brekken
  • 1,468
  • 1
  • 15
  • 23
1

You can use StackMob. Check out the website (https://www.stackmob.com/) I didn't use it a lot, but you can watch this great lecture at Udemy (http://www.udemy.com/learn-backbonejs-stackmob/), and watch the lecture 11 and 12

lborgav
  • 2,371
  • 19
  • 28
0

If you want to do a lot less coding, take a look at Urbini. It is like IFTTT, but more open as it allows you to create your own adapter to map any WebAPI into backbone models. Urbini provides seamless persistence to IndexedDB (with a fallback to WebSQL) and automatic sync with the web site via its WebAPI.

Community
  • 1
  • 1
Gene Vayngrib
  • 116
  • 1
  • 6