AppEvent
A basic nodejs app container to build evented apps with env/argv based configuration.
Only 3 events, load
, ready
, start
.
Suits you if :
- You like almost non-existant APIs.
- Conventions over configuration.
- Don't mind using
process
global to setup an event-based application. - System based configuration regarding
process.env
merged with.env
file on the root folder, and finally overrided byyargs
command line arguments. - De facto PM2/PMX deployment/integration to abstract process usage & metrics (not required)
- out-of-the box JSON logging (bunyan compliant) with trace to stderr & stdout
- runtime command using PM2
trigger
actions
usage
A basic usage
var start = ; /* Register module on load */process; /* Add another module that just have to bind itself to `load`, `ready`, `start` */ process; /* configuration/registration done eventually inform other module or passing an API */process; /* On start you can start your servers */process; /* start app */ ;