jodata / forest-express-mongoose

Official Express/Mongoose Liana for Forest

Home Page:http://www.forestadmin.com

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

About

Official Express/Mongoose Liana for Forest

http://www.forestadmin.com

License:GNU General Public License v3.0


Languages

Language:JavaScript 100.0%