Destination Framework
Painless API Creation Framework for Node.js w/ Database Agnostic Adapters.
Installation
npm install destination
Usage
Include the Destination Framework
var Destination = ;
Install an Adapter, and start an objective:
var Objective = Destinationstart/* Express Application (app, generally) */ name: 'adapter name such as (mongodb)' ... Adapter Settings ...;
Start defining objective Models, Property schema curtesy of Validator.
var User = Objective;
Models currently only have two keywords in the root document:
- collection
- routing
Anything else is used as a property schema, processed and parsed by Validator upon requests, refer to validator for schema documentation.
It's extremely simple. I promise. Now you listen:
Objective;
You don't even have to use the Objective variable to listen, you can use your application framework to do it and it will still work. :)
Adapters
- destination-mongodb by Nijikokun
Todo
- Find a way to support any application framework instead of Express.