blueprint
blueprint copied to clipboard
can i add sequelize modul #question
how to connect my blueprint app to mysql using sequelize
@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:
- Install
@onehilltech/blueprint-sequelize
- Install the
mysql2
database driver - 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.
do you have youtube channel or youtube stream recommendation..i'm very interested to learn framework blueprint...because i like stand-alone application server