Skip to content

Commit

Permalink
Implement the backend of this application
Browse files Browse the repository at this point in the history
  • Loading branch information
marcoechevestre committed Mar 27, 2020
1 parent 861f3a0 commit 4cbfacd
Show file tree
Hide file tree
Showing 14 changed files with 3,064 additions and 52 deletions.
9 changes: 0 additions & 9 deletions backend/index.js

This file was deleted.

48 changes: 48 additions & 0 deletions backend/knexfile.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
// Update with your config settings.

module.exports = {

development: {
client: 'sqlite3',
connection: {
filename: './src/database/db.sqlite'
},
migrations: {
directory: './src/database/migrations'
},
useNullAsDefault: true,
},

staging: {
client: 'postgresql',
connection: {
database: 'my_db',
user: 'username',
password: 'password'
},
pool: {
min: 2,
max: 10
},
migrations: {
tableName: 'knex_migrations'
}
},

production: {
client: 'postgresql',
connection: {
database: 'my_db',
user: 'username',
password: 'password'
},
pool: {
min: 2,
max: 10
},
migrations: {
tableName: 'knex_migrations'
}
}

};
Loading

0 comments on commit 4cbfacd

Please sign in to comment.