Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

setup the database config file with sequelize #10

Open
5 tasks done
amusameh opened this issue Jul 24, 2018 · 0 comments
Open
5 tasks done

setup the database config file with sequelize #10

amusameh opened this issue Jul 24, 2018 · 0 comments
Assignees
Labels
task Requires farther splitting

Comments

@amusameh
Copy link
Collaborator

amusameh commented Jul 24, 2018

This relates to issue #6 Here we setup the sequelize connection with the database which requires installing the(pg and pg-hstore) modules to help to establish the connection with the Postgres Db.

  • Import the sequelize and env2 modules.
  • Setting up the connection with the local Postgres database.
  • create the models object and adding the Sequlize module and sequelize instance to it.
  • export the models object.
  • sync with the database using sync() method in the server/index.js file
@amusameh amusameh added the task Requires farther splitting label Jul 24, 2018
@amusameh amusameh self-assigned this Aug 5, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
task Requires farther splitting
Projects
None yet
Development

No branches or pull requests

1 participant