How rohit5552/ipp works
NewRa is a GES-account workspace for assessing and comparing independent power producers (IPPs). Staff manage GES requirements and producer records, capture questionnaire evidence, and use the comparator to review scores and matching; procurement workflows extend into tariff negotiation, dealbooks, documents, and related decisions. The frontend calls a NestJS API, which applies domain evaluation and persists results in PostgreSQL. Several feature paths are documented by the module registry and README, but their internal call chains were not sampled, so those links are omitted or marked unverified.
Main entry points: energy.service.ts Energy workflows · api.ts API client · platform.controller.ts Platform routes · app Workspace screens
Components 19
Workspace UI
- Workspace screens
apps/frontend/src/app - Session and scope
apps/frontend/src/features/auth/AuthProvider.tsx - GES management
apps/frontend/src/app/ges/page.tsx - IPP register
apps/frontend/src/app/ipps/page.tsx - Questionnaire UI
apps/frontend/src/app/questionnaire/page.tsx - Comparison UI
apps/frontend/src/app/ges/[gesId]/comparison/page.tsx - API client
apps/frontend/src/services/api.ts
API and access
- Identity and access
apps/backend/src/auth/auth.service.ts - Platform routes
apps/backend/src/platform/platform.controller.ts - Energy workflows
apps/backend/src/platform/energy.service.ts - Questionnaire service
apps/backend/src/platform/questionnaire.service.ts - PostgreSQL store
apps/backend/src/prisma/prisma.service.ts
Assessment domain
- Scoring and matching
apps/backend/src/domain - Result rebuilding
apps/backend/src/persistence/rebuild.ts
Procurement lifecycle
- Procurement workflows
apps/backend/src/platform/procurement.service.ts - Tariff analysis
apps/backend/src/domain/tariff.ts - Feature modules
apps/backend/src/modules
Other components
- Staff user
- GES user
Connections 21
- Staff user → Workspace screens: uses
README.md - GES user → Workspace screens: uses
README.md - Workspace screens → API client: requests
apps/frontend/src/app/ges/[gesId]/comparison/page.tsx - API client → Platform routes: calls API
- Workspace screens → Session and scope: uses session
apps/frontend/src/app/ges/[gesId]/comparison/page.tsx - GES management → API client: loads accounts
apps/frontend/src/app/ges/page.tsx - IPP register → API client: loads producers
apps/frontend/src/app/ipps/page.tsx - Questionnaire UI → API client: loads and saves
apps/frontend/src/app/questionnaire/page.tsx - Comparison UI → API client: requests comparison
apps/frontend/src/app/ges/[gesId]/comparison/page.tsx - Platform routes → Energy workflows: routes workflows
apps/backend/src/platform/platform.controller.ts - Platform routes → Procurement workflows: routes profile
apps/backend/src/platform/platform.controller.ts - Platform routes → Questionnaire service: routes questionnaire
apps/backend/src/platform/platform.controller.ts - Identity and access → PostgreSQL store: reads and writes
apps/backend/src/auth/auth.service.ts - Questionnaire service → PostgreSQL store: reads and writes
apps/backend/src/platform/questionnaire.service.ts - Energy workflows → PostgreSQL store: persists records
apps/backend/src/platform/energy.service.ts - Energy workflows → Result rebuilding: rebuilds results
apps/backend/src/platform/energy.service.ts - Energy workflows → Scoring and matching: uses domain logic
apps/backend/src/platform/energy.service.ts - Energy workflows → Questionnaire service: uses ratings
apps/backend/src/platform/energy.service.ts - Energy workflows → Tariff analysis: uses tariff logic
apps/backend/src/platform/energy.service.ts - Platform routes → Feature modules: registers features
- Feature modules → Procurement workflows: includes workflows