/forest-express-mongoose

Official Express/Mongoose Liana for Forest

Primary LanguageJavaScriptGNU General Public License v3.0GPL-3.0

Forest Express/Mongoose connector

Build Status The official Express/Mongoose liana for Forest.

Installation

  1. Run $ npm install forest-express-mongoose --save
  2. Add the following code to your app.js file:
app.use(require('forest-express-mongoose').init({
  modelsDir: __dirname + '/models',  // The directory where all of your Mongoose models are defined.
  secretKey: 'ultrasecretkey', // The secret key given my Forest.
  authKey: 'catsOnKeyboard', // Choose an secret authentication key.
  mongoose: require('mongoose') // The mongoose instance given by require('mongoose').
}));

License

GPL v3