crudl-control

0.1.0 • Public • Published

CRUDL now express - a websocket CRUD delegate

lifts a crudl-model to the web

map = (person) -> name: person.name

personCrudl = crudl db.Person, map, (p) -> _.extend map(p), id: term.id

everyone.now.yourApp =

  # use direct delegate to prevent scope
  persons: personCrudl.all

  # or apply nowjs scope manually
  savePerson: (values, onSuccess) ->
    personCrudl.update.apply @, [values.id, values, onSuccess]

Readme

Keywords

none

Package Sidebar

Install

npm i crudl-control

Weekly Downloads

2

Version

0.1.0

License

none

Last publish

Collaborators

  • dgf