Rapid Backbone Prototyping With Real Backend
brainy.io
brainy.io
though i hope the readme is sufficient, this essentially lets you create a Backbone client application and it will create a full REST API for you. next feature in the pipeline does the same for views, allowing you to render your application on the client or server. following feature will be pub/sub on collections and models.
questions comments concerns welcome
I'm also looking at well known collections as queries, such that the client can define some, upload the fetch request to the server, and the server will use the underlying database to populate the collection results, subject to privacy and access.
Have you thought about what adding those features to this framework might look like?
if i understand correctly, this is exactly what i attempted with Brainy. all validation is run on the client (if they fail they don't send) and again on the server (if they fail they return an error response code). check out the `validate` documentation. [1]
>> I'm also looking at well known collections as queries, such that the client can define some, upload the fetch request to the server, and the server will use the underlying database to populate the collection results, subject to privacy and access.
again, correct me if i'm wrong, but i think this is baked into Brainy on top of Backbone's fetch. [2]
[1] http://brainy.io/#resources-validate [2] http://brainy.io/#resources-fetch
As far as collections, pretend a user can only see threads for which he is a member. Can that be enforced with Brainy? It could be if the queries were well-defined methods that produced query strings and were executed on the server.
I ask about all this because I'm basically implementing it manually in my current project, and it would be neat to have something reusable at the end of these efforts.
it's not packaged because i'm hesitant to include any client-specific code (yet) and i'm not sure it's any sort of secure. if you open an issue on the project i'll remember to respond with more detail.