blueprint icon indicating copy to clipboard operation
blueprint copied to clipboard

can i add sequelize modul #question

Open mohammad-irvan opened this issue 3 years ago • 2 comments

how to connect my blueprint app to mysql using sequelize

mohammad-irvan avatar Nov 24 '21 13:11 mohammad-irvan

@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.

hilljh82 avatar Nov 24 '21 14:11 hilljh82

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

mohammad-irvan avatar Nov 24 '21 14:11 mohammad-irvan