Skip to content

Instantly share code, notes, and snippets.

@rmehta
Created November 2, 2011 06:40
Show Gist options
  • Save rmehta/1333045 to your computer and use it in GitHub Desktop.
Save rmehta/1333045 to your computer and use it in GitHub Desktop.

Concept Note for wnframework2

html/css is fast evolving and covering gaps in building of complex web apps. The key gaps that remain are

  1. persistent datastore for objects / content
  2. partial loading of code (require pattern) / ajax
  3. built-in app / site structure and navigation
  4. built-in authoring of structured content
  5. user authentication and session management

How wnframework will plan to cover this gaps

  1. server-side objstore to handle all json objects: an object is a json object with a "type" and "id" that will identify itself
  2. for authoring, a metadata driven form structure will be there: the metadata will have properties and fields (description of properties)
  3. authentication and session management will be done via cookies (sid) - sessions will be saved in a sqlite db
  4. every object type will have its persistence model (a db table or folder)
  5. foreign key validation will be done to maintain integrity of the data

API

objstore.cgi GET {type, id, sid} objstore.cgi POST {type, id, sid, json}

session.cgi POST {user, password} (returns sid)

list.cgi GET {type, filters, limit[start, page], sid}

Default types

"type" {id, properties[{id, name, type, {options}}, permissions[{role, read, write, create}]) "user" {id, password, roles[]} "role" {id} "page" {html, css, js}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment