JSPM

forest-express-mongoose

0.0.8
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 820
  • Score
    100M100P100Q104156F
  • License MIT

Forest connector for Expressjs and Mongoose

Package Exports

  • forest-express-mongoose

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (forest-express-mongoose) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

Forest Express/Mongoose connector

Build Status The official Express/Mongoose liana for Forest.

Installation

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

License

GPL v3