Skip to Content

Operations

This package is an HTTP NestJS service. Day-to-day scripts:

ScriptPurpose
npm run start:devNest watch mode (local development)
npm run buildCompile to dist/
npm testJest unit tests
npm run start:prodnode dist/main
npm startnest start

macOS launchd

A sample LaunchAgent plist ships at notification-service/ops/com.notification-service.plist.

KeyBehavior
Labelcom.notification-service
RunAtLoadtrue
KeepAlivetrue
ThrottleInterval30 seconds
WorkingDirectorypackage root
StandardOutPath / StandardErrorPathunder data/

The checked-in plist points ProgramArguments at a specific Node binary and dist/src/main.js path — edit those absolute paths for your machine before loading.

Build

cd notification-service npm run build

Load the agent (after editing paths)

cp ops/com.notification-service.plist ~/Library/LaunchAgents/ launchctl load ~/Library/LaunchAgents/com.notification-service.plist

Unload

launchctl unload ~/Library/LaunchAgents/com.notification-service.plist

Logs default to data/notification-service.log and data/notification-service.err.log in the sample plist. Ensure ./data exists and .env is present in WorkingDirectory.

Last updated on