npm run dev
: Start development mode (load all services locally with hot-reload & REPL)npm run dev:scripts
npm run build:scripts
: Build scriptsnpm run start
: Start production mode (setSERVICES
env variable to load certain services)npm run cli
: Start a CLI and connect to production. Don't forget to set production namespace with--ns
argument in scriptnpm run lint
: Run ESLintnpm run ci
: Run continuous test mode with watchingnpm test
: Run tests & generate coverage reportnpm run dc:up
: Start the stack with Docker Composenpm run dc:down
: Stop the stack with Docker Compose
Event:
{
"type": "event",
"subject": "|string|",
"data": "|any+optional|"
}
Request:
{
"type": "request",
"requestId": "|number|string|",
"subject": "|string|",
"data": "|any+optional|"
}
Successful response:
{
"type": "response",
"requestId": "|number|string|",
"data": "|any+optional|"
}
Failing response:
{
"type": "response",
"requestId": "|number|string|",
"error": "|string|",
"data": "|any+optional|"
}