0.1.0 • Published 7 years ago

ah-mongo-plugin v0.1.0

Weekly downloads
4
License
MIT
Repository
github
Last release
7 years ago

ah-mongo-plugin

ActionHero.js initializer plugin. It allows to connection to MongoDB using mongoose.js and its schemes/models.

Installation

  • To install
npm i ah-mongo-plugin --save
  • Configure it in config/mongo.js

  • Make it enabled in config/plugin.js of your AH project

exports['default'] = {
  plugins: (api) => {
    return {
      'ah-mongo-plugin': {
        path: path.join(api.projectRoot , 'node_modules', 'ah-mongo-plugin'),
        initializers: true
      }
    }
  }
}