initial commit
This commit is contained in:
commit
cd234531b9
37 changed files with 5529 additions and 0 deletions
10
backend/db.js
Normal file
10
backend/db.js
Normal file
|
@ -0,0 +1,10 @@
|
|||
const knex = require('knex');
|
||||
const knexConfig = require('./knexfile.js');
|
||||
|
||||
const environment = process.env.NODE_ENV || 'development';
|
||||
const config = knexConfig[environment];
|
||||
|
||||
const db = knex(config);
|
||||
|
||||
module.exports = db;
|
||||
|
Loading…
Add table
Add a link
Reference in a new issue