geddy / model

Datastore-agnostic ORM in JavaScript
265 stars 55 forks source link

Client-side support (Support for IndexDB / Localstorage / Remotestorage) #153

Open marcelklehr opened 10 years ago

marcelklehr commented 10 years ago

It would be nice to switch an app's backend from server-side to client-side more or less seamlessly.

This allows one to switch to unhosted stuff like grimwire, and remotestorage!

mde commented 10 years ago

There has been a lot of discussion of a client-side adapter. Geddy's (somewhat embryonic) realtime support uses the model definitions on the client-side, so it's definitely doable. I'd start by looking at the in-memory and filesystem adapters, and go from there. I'd love to see this happen, and I'm happy to provide help to anyone who wants to work on it.

pspeter3 commented 10 years ago

This would be awesome, especially if there was a way to sync.

mde commented 10 years ago

The Model lib is now cleanly Browserify-able. Another step toward getting this to work. I think @der-On has done some work already in this area.

jrhicks commented 9 years ago

@der-On Is anyone still working to bring Model to the front-end?

der-On commented 9 years ago

@jrhicks yes. I'm currently using the rest-adapter in my second production project. I need to write an example on how to integrate it correctly. It's not as straight forward as on the server.

der-On commented 9 years ago

@jrhicks I've now added docs about how to use the rest-adapter in the browser: https://github.com/geddy/model#using-rest-adapter-in-browser

jrhicks commented 9 years ago

thanks @der-On