Saving results to database. Showing webpage.

This commit is contained in:
2019-05-06 02:01:57 +02:00
parent ca0133803a
commit 3df5a821b6
20 changed files with 1141 additions and 439 deletions

View File

@@ -1,11 +1,19 @@
'use strict';
const config = require('config');
const knex = require('knex');
/*
module.exports = knex({
client: 'sqlite3',
connection: {
filename: './db.sqlite',
filename: path.join(__dirname, '../db.sqlite'),
},
useNullAsDefault: true,
});
*/
module.exports = knex({
client: 'pg',
connection: config.database,
});