Skip to main content

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

SectionDescription
User GuideWhat the software does, the modules available, user roles, and step-by-step workflows
ArchitectureTech stack, project structure, authentication system, data models, and deployment
Application FlowDetailed lifecycle of MOC and PCR workflows, email notifications, and automated reminders
API ReferenceAll backend API endpoints with request/response formats and authentication requirements
Key ComponentsFrontend component architecture, tracking views, form system, and analytics
ConfigurationEnvironment variables, customization points, email templates, and scheduled jobs

Quick Facts

PropertyValue
FrameworkNext.js 15 (App Router)
LanguageTypeScript / JavaScript
DatabaseMongoDB (via Mongoose)
AuthenticationJWT (via jose) stored in HTTP-only cookies
HostingVercel
Email ServiceAWS Lambda (SES)
Real-timeFirebase
UI Librariesshadcn/ui, Radix UI, Ant Design, Tailwind CSS