I would like to use StrongLoop Loopback as a Node.js backend API for a backbone.js app.
Is there a way to define models attributes and methods (for example, for validation) that can be used both on the client side, in the backbone model, and on the server, in Loopback models definitions ? (Dont Repeat Yourself philosophy)
Loopback uses model definitions to initialize objects
Maybe I can extend Backbone.Model
to be able to load the Loopback model definition syntax ?
Do you think it's a good idea / easy task ?