Skip to content

Instantly share code, notes, and snippets.

@aq1018
Created May 3, 2012 07:36
Show Gist options
  • Save aq1018/2584039 to your computer and use it in GitHub Desktop.
Save aq1018/2584039 to your computer and use it in GitHub Desktop.
Client + Server side model and form validation
Client side:
model Sync (Ajax API)
model view binding. ( Backbone.ModelBinder )
form builder, build a form based on a model
Server side:
model validation needs extra deferred validators for uniqueness.
model sync will go to mongodb
Shared:
model validation. Custom object validator based on $.Deferred + node-validator
model validation needs to be completely asynchronous. (server will need this, but client can live with it)
model validation needs to aggregate errors if save fails.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment