Skip to content
/ mongo Public
forked from fastpanel/mongo

Extension to work with "MongoDB" base.

License

Notifications You must be signed in to change notification settings

jnreis/mongo

 
 

Repository files navigation

fastPanel MongoDB Extension.

Extension to work with "MongoDB" base.


Env

# Defines the MongoDB environment.
MONGODB_HOST='localhost'
MONGODB_PORT=27017
MONGODB_USER=''
MONGODB_PASS=''
MONGODB_DBNAME='fastPanel'

# Connection options.
MONGODB_AUTO_RECONNECT=true
MONGODB_RECONNECT_TRIES=9999
MONGODB_RECONNECT_INTERVAL=500
MONGODB_POOL_SIZE=10

Events

cli:getCommands

The event is triggered when the application is ready to register mongoose models.

  this.events.once('db:getModels', async (db: Mongoose.Connection) => {});

License

The MIT License (MIT)


Copyright

(c) 2014 - 2019 Desionlab

About

Extension to work with "MongoDB" base.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • JavaScript 54.7%
  • TypeScript 45.3%