Created
March 21, 2017 17:50
-
-
Save leemeichin/781c33c70408b9b8b714e7aa7cbcf56d to your computer and use it in GitHub Desktop.
tf-liedetector boilerplate
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
var ApiBuilder = require('claudia-api-builder') | |
var pg = require('pg') | |
var api = new ApiBuilder() | |
/** | |
* configuration settings come from environment: | |
* PGUSER | |
* PGDATABASE | |
* PGPASSWORD | |
* PGPORT | |
* PGHOST | |
*/ | |
var db = new pg.Client() | |
api.get('/', function () { | |
return 'yay!' | |
}) | |
module.exports = api |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment