Skip to content

Commit

Permalink
chore(database):setup database with sequelize ORM
Browse files Browse the repository at this point in the history
- create .sequelizerc file
- initialize sequelize-cli for database
- configure sequelize to use ES6
[Finishes #167190519]
  • Loading branch information
chialuka committed Jul 25, 2019
1 parent 93de2a7 commit c6799ad
Show file tree
Hide file tree
Showing 8 changed files with 3,394 additions and 515 deletions.
4 changes: 3 additions & 1 deletion .env.sample
Original file line number Diff line number Diff line change
@@ -1,2 +1,4 @@
PORT=

DB_URL_DEV=
DB_URL_PRODUCTION=
NODE_ENV=
10 changes: 10 additions & 0 deletions .sequelizerc
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
require("@babel/register");

const path = require('path');

module.exports = {
'config': path.resolve('server/database/config', 'config.js'),
'models-path': path.resolve('server/database/models'),
'seeds-path': path.resolve('server/database/seeds'),
'migrations-path': path.resolve('server/database/migrations')
}
Loading

0 comments on commit c6799ad

Please sign in to comment.