Forest Express/Sequelize connector
The official Express/Sequelize liana for Forest.
Installation
- Run
$ npm install forest-express-sequelize --save
- Add the following code to your
app.js
file:
app.use(require('forest-express-sequelize').init({
modelsDir: __dirname + '/models', // The directory where all of your Sequelize models are defined.
secretKey: 'ultrasecretkey', // The secret key given my Forest.
authKey: 'catsOnKeyboard', // Choose a secret authentication key.
sequelize: require('sequelize') // The sequelize instance given by require('sequelize').
}));
License
Contribute
Install JSHint for the Git hooks:
npm install jshint -g