This CleverStack Module deeply integrates SequelizeJS into CleverStack, to provide an out of the box Object Relational Mapper which is rich in features, widely used and accepted, well tested, mature and reliable Enterprise Grade SQL (DB) Solution for CleverStack.
See cleverstack.io for more detailed information on the Node seed or visit the Getting Started Guide. For more information about using clever-orm (and models in general) please see the Models Documentation.
-
From your project folder run
clever install clever-orm
-
In the config file for your desired environment (ie. backend/config/local.json), update the clever-orm object with the details for your database.
-
From your project's
backend
folder, runNODE_ENV=local grunt db
. The database tables for your modules should now be installed and seeded with data!