Home > simple

simple

Simple is a project mainly written in COFFEESCRIPT and JAVASCRIPT, it's free.

Simple Node.js JSON REST/RPC server secured by Object Capability

Aim

To provide simple means to write thin JSON REST/RPC server with built-in security based on Object Capability. Most of existing similar projects are about providing sugar to do routing and/or template rendering, paying no or little attention to security.

Simple is written in pure CoffeeScript and uses:

  • creationix's stack to form middleware

  • jed's Secure cookies to persist authenticated user id

  • cloudhead's node-static to serve static content

  • christkv's node-mongodb-native as persistence layer

Simple can be run as single process, or as robust multiple processes farm similar to multi-node or cluster

Simple talks just JSON REST/RPC. All rendering is drawn as client-side task. I strongly suggest to look at Backbone as client-side MVC.

Simple uses Resource Query Language and provides very flexible and powerful way to semantically map URLs to DB queries.

Simple uses JSON-Schema to describe entities and validation rules. Changes are made to vanilla JSON-Schema so that it could express per-property access rules.

Simple uses facets to expose entity accessor methods to both web and internal business logic.

...More info to come...

Install

Run:

./install

Example and test

coffee test.coffee

and point your browser to http://127.0.0.1:3000

or here

License

Copyright 2011 Vladimir Dronnikov.

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

Previous:hash-count