obrand-admin-server/server/units/db-connector.js
Martin Donnelly 40a8337ab3 Server up and running and serving all the previous mocked stuff.
Also now serving api/pages as a list page and viewer.
2016-03-31 14:24:21 +01:00

22 lines
270 B
JavaScript

'uses strict';
/**
*
* User: Martin Donnelly
* Date: 2016-03-11
* Time: 10:22
*
*/
var pgp = require('pg-promise')();
var cn = {
host: 'localhost',
port: 5432,
database: 'oBrand',
user: 'obrand',
password: 'obrand'
};
exports.dbConnection = pgp(cn);