This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* This is an experimentation example of | |
* the new component definition DSL for Quiver. | |
* Here we will define a simple hello handler | |
* with a few middleware to transform the | |
* input/output. | |
* | |
* - The base handler get the name as text from | |
* standard input stream and output the greeting | |
* with "hello" in front of the name. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
'use strict' | |
var Nedb = require('nedb') | |
var urlLib = require('url') | |
var httpLib = require('http') | |
var express = require('express') | |
var MongoClient = require('mongodb').MongoClient | |
var useExpress = true | |
var useMongo = true |
NewerOlder