RESTfull API with fortune

Install:

npm install -g fortune

Usage:

var fortune = require("fortune");
var PORT     = process.argv[2] || 4000;
var app     = fortune({
inflect:false ,


db: "./db/kursusDB",
baseUrl: "http://localhost:" + PORT

});

app.resource('kursus', {
    kursusNummer: Number,
    kursusTitel: String,
    kursusBeskrivelse: String,
    elever: Array,
    deltager: ['person'] 

});

app.resource('person', {
    navn:String,
    titel:String,
    firma:String,
    deltager_på_et_kursus:'kursus' 
});


app.listen(PORT);