Skip to content

Instantly share code, notes, and snippets.

View soareschen's full-sized avatar
🏠
Working from home

Soares Chen soareschen

🏠
Working from home
View GitHub Profile
@soareschen
soareschen / quiver-dsl-test-1.js
Last active August 29, 2015 14:02
Quiver DSL Experimentation
/*
* 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.
'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