How karthik1319/npst-platform works
This repository is a multi-application enterprise portal: a shell provides platform navigation and administration, while separately mounted HR, sales, and project apps supply domain workflows. The shell also includes branding, notifications, reminders, audit, and application management; a NestJS service backs shared application and theme operations. The principal visible workflow is shell-to-remote mounting, then domain page-to-service interaction. Edges are limited to relationships shown in excerpts or SOURCE INDEX references; many shell and demo subsystems are represented from the tree without inferred wiring.
Main entry points: pages HR pages · App.tsx Portal entry · applications.service.ts Application registry · runtime-theme.service.ts Theme generation
Components 24
Portal shell
- Portal entry
apps/shell/src/App.tsx - Platform access
apps/shell/src/platform - Remote mounting
apps/shell/src/remotes - Administration
apps/shell/src/pages - Branding editor
apps/shell/src/pages/branding - Notifications
apps/shell/src/pages/notifications - Reminder management
apps/shell/src/pages/reminders - Shell services
apps/shell/src/services - Local data storage
apps/shell/src/services/storage.ts
Domain apps
- HR app entry
apps/demo-angular/src/main.ts - HR pages
apps/demo-angular/src/app/pages - HR service
apps/demo-angular/src/app/services/hr.service.ts - HR UI helpers
apps/demo-angular/src/app/ui - Sales app
apps/demo-react-a/src - Projects app
apps/demo-react-b/src
Shared backend
- Application registry
apps/shared-services-backend/src/applications/applications.service.ts - Branding API
apps/shared-services-backend/src/branding/branding.controller.ts - Branding service
apps/shared-services-backend/src/branding/branding.service.ts - Runtime theme API
apps/shared-services-backend/src/runtime-theme/runtime-theme.controller.ts - Theme generation
apps/shared-services-backend/src/runtime-theme/runtime-theme.service.ts
Shared libraries
- Mock domain data
libs/mock-backend/src - Mount contracts
libs/shared-contracts/src - Platform mocks
libs/platform-mocks/src
Other components
- Portal user
Connections 14
- Portal user → Portal entry: uses
- Portal entry → Platform access: provides access
- Portal entry → Remote mounting: mounts apps
- HR app entry → HR pages: bootstraps
apps/demo-angular/src/main.ts - HR app entry → Mount contracts: uses props
apps/demo-angular/src/main.ts - HR pages → HR service: uses
apps/demo-angular/src/app/pages/dashboard.ts - HR pages → HR UI helpers: uses
apps/demo-angular/src/app/pages/dashboard.ts - HR pages → HR pages: routes to
apps/demo-angular/src/app/app.routes.ts - Application registry → Application registry: queries repository
apps/shared-services-backend/src/applications/applications.service.ts - Branding API → Branding service: delegates to
apps/shared-services-backend/src/branding/branding.controller.ts - Branding service → Application registry: looks up apps
apps/shared-services-backend/src/branding/branding.service.ts - Runtime theme API → Theme generation: delegates to
apps/shared-services-backend/src/runtime-theme/runtime-theme.controller.ts - Theme generation → Theme generation: generates themes
apps/shared-services-backend/src/runtime-theme/runtime-theme.service.ts - Local data storage → Shell services: resets themes
apps/shell/src/services/storage.ts