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

can i add sequelize modul #question #56

Open
mohammad-irvan opened this issue Nov 24, 2021 · 2 comments
Open

can i add sequelize modul #question #56

mohammad-irvan opened this issue Nov 24, 2021 · 2 comments

Comments

@mohammad-irvan
Copy link

how to connect my blueprint app to mysql using sequelize

@hilljh82
Copy link
Contributor

hilljh82 commented Nov 24, 2021

@mohammad-irvan Please see the blueprint-sequelize module. Since sequelize is not really used in our solutions, the documentation is very limited.

But to answer your question:

  1. Install @onehilltech/blueprint-sequelize
  2. Install the mysql2 database driver
  3. Define the database configuraton in app/configs/sequelize.js.

From there, blueprint-sequelize functions in a similar manner as blueprint-mongodb. All sequelize models go under app/models directory.

We have some simple examples for using blueprint-sequelize here: https://github.com/onehilltech/blueprint/tree/master/packages/blueprint-sequelize/tests/dummy

I hope this answers your question.

@mohammad-irvan
Copy link
Author

do you have youtube channel or youtube stream recommendation..i'm very interested to learn framework blueprint...because i like
stand-alone application server

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants