Introduction
The Bahri MOC & PCR Platform is a web-based system built for Bahri to digitize and manage two core operational workflows:
- MOC (Management of Change) — A structured six-step approval process for proposing, assessing, approving, implementing, and verifying operational changes across the organization.
- PCR (Procedure Change Request) — A signature-based workflow for requesting changes to internal procedures, with multi-party review and approval.
The platform replaces paper-based processes with a fully digital solution that provides real-time tracking, automated email notifications, role-based access control, audit logging, and analytics.
What This Documentation Covers
| Section | Description |
|---|---|
| User Guide | What the software does, the modules available, user roles, and step-by-step workflows |
| Architecture | Tech stack, project structure, authentication system, data models, and deployment |
| Application Flow | Detailed lifecycle of MOC and PCR workflows, email notifications, and automated reminders |
| API Reference | All backend API endpoints with request/response formats and authentication requirements |
| Key Components | Frontend component architecture, tracking views, form system, and analytics |
| Configuration | Environment variables, customization points, email templates, and scheduled jobs |
Quick Facts
| Property | Value |
|---|---|
| Framework | Next.js 15 (App Router) |
| Language | TypeScript / JavaScript |
| Database | MongoDB (via Mongoose) |
| Authentication | JWT (via jose) stored in HTTP-only cookies |
| Hosting | Vercel |
| Email Service | AWS Lambda (SES) |
| Real-time | Firebase |
| UI Libraries | shadcn/ui, Radix UI, Ant Design, Tailwind CSS |