Skip to content
clustered express overloaded with common features
JavaScript CSS HTML
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
config
public
src
.babelrc
.eslintrc.js
.gitignore
README.md
package-lock.json
package.json

README.md

cluster-express-overloaded

It is an express framework boilerkit with clusters module implemented. It is a start-up kit for our applications in node.js specially caring about high traffic and services.

events

Service Events

  • app.on("servicesSingleLoaded") //Loads services with cluster id == 0 (folder service-single)
  • app.on("servicesMultipleLoaded") //Loads services in all cluster (folder service-multi)

Email Events

  • app.on("beforeEmail", mailOptions) //before initiating emails with options
  • app.on("email", err,info) //despite sucess/error
  • app.on("emailSent", info) //on success
  • app.on("errorOnEmail", err,info) //on error

App Events

  • app.on('booted') //Loaded config, components, overrides and routes

Components

Mail Component

  • app.components.mail(to,from,subject,text,html = text,transport = "default")

Cache component

  • app.components.cache["type"] are instances of cacheman
  • app.components.cache.file is cluster supported cacheman component cacheman-file-cluster
  • app.component.cache.redis is a cacheman-redis instance
You can’t perform that action at this time.