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