NOCPro Service
Purpose
mvp3-nocpro-service is the backend service for NOCPro-related workflows.
Local runtime facts
- default local port:
3004 - swagger docs:
/nocpro/docs - metrics endpoint:
/nocpro/metrics - env template:
.env.example
Owned modules
nocpro
Dependencies
- MariaDB
- Redis
- RabbitMQ credentials are part of the template
CAMELIA_SOCKET_BASE_URI- shared storage volume appears in
docker-compose.yml
Required config groups
PORTDB_*TOKEN_EXPIRED_PER_SECONDS,JWT_ISSUER,JWT_ALGORITHMREDIS_*RABBITMQ_*CAMELIA_SOCKET_BASE_URI
Upstream and downstream
- upstream callers: portal NOCPro flows
- downstream systems: MariaDB, Redis, Camelia socket integration, shared storage
- queue publishing confirmed from code:
- emits
create-kcitointt_kci_queue - sends
tmf-update-ctt-listtointt_ctt_queue
- emits
- team clarification:
- this service is part of the Antrix system of record
- it exposes endpoints for external sources
- cross-service integration should happen through endpoints, not direct table writes
Confirmed module mapping
- route prefix:
/nocpro - technical host module:
NocproModule
Local commands
Install:
git submodule update --init --recursive
cd share-entity
git checkout development
cd ..
pnpm install
Run locally:
pnpm run start:dev
Build and run production mode:
pnpm run build
pnpm run start:prod
Test:
pnpm run test
pnpm run test:e2e
pnpm run test:cov
Local testing
- unit tests:
pnpm run test - e2e tests:
pnpm run test:e2e - coverage:
pnpm run test:cov