Skip to content

Instantly share code, notes, and snippets.

@leemeichin
Created March 21, 2017 17:50
Show Gist options
  • Save leemeichin/781c33c70408b9b8b714e7aa7cbcf56d to your computer and use it in GitHub Desktop.
Save leemeichin/781c33c70408b9b8b714e7aa7cbcf56d to your computer and use it in GitHub Desktop.
tf-liedetector boilerplate
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