How cpccu/cpccu-client works
CPCCU is a community web portal with public content, member profiles, event participation, certificate verification, and operational administration. Visitors browse published material or verify certificates; members authenticate, manage profiles, and participate in events; administrators manage site operations. The sampled code shows the public job-pipeline and certificate entry points, participation API, profile data access, and shared API configuration. Other major capabilities are included based on the README; their internal wiring was not sampled, so those links are documented rather than inferred from neighboring modules.
Main entry points: baseApi.js API client · (main)/page.jsx Public pages · admin/page.jsx Admin routes · JobPipeline.jsx Job pipeline
Components 26
Public portal
- Public pages
src/app/(main)/page.jsx - Published content
src/lib/public-content.js - Job pipeline
src/components/Layout/JobPipeline.jsx - Certificate portal
src/app/(main)/certificate/page.jsx
Member services
- Member profiles
src/components/Layout/Profile.jsx - Authentication
src/features/auth/authApi.js - Event participation
src/components/PARTICIPATION/EventParticipationSection.jsx - Participation rules
src/lib/participation.js
Administration
- Admin routes
src/app/admin/page.jsx - Admin workspace
src/components/admin-layout.jsx - Participation management
src/components/participation-content.jsx - Admin dashboard
src/components/dashboard-content.jsx - Admin loading views
src/components/page-skeleton.jsx
Data and shared services
- Certificate queries
src/features/certificate/certificateApi.js - User and projects API
src/features/users/userApi.js - Participation API
src/features/participation/participationApi.js - Admin data API
src/features/admin/adminApi.js - Content API
src/features/content/contentApi.js - API client
src/services/baseApi.js - Hackathon utilities
src/lib/hackathon.js - Shared card UI
src/components/ui/card.jsx - Shared skeleton UI
src/components/ui/skeleton.jsx
Other components
- Visitor
- Member
- Administrator
- CPCCU backend
Connections 29
- Visitor → Public pages: browses
README.md - Public pages → Published content: presents content
README.md - Public pages → Certificate portal: opens portal
README.md - Public pages → Job pipeline: opens pipeline
README.md - Job pipeline → Content API: fetches profiles
src/components/Layout/JobPipeline.jsx - Job pipeline → Published content: normalizes profiles
src/components/Layout/JobPipeline.jsx - Certificate portal → Certificate queries: renders certificate views
src/app/(main)/certificate/page.jsx - Certificate queries → API client: injects endpoints
- Member → Authentication: signs in
README.md - Member → Member profiles: views and edits
README.md - Member profiles → User and projects API: loads profile data
src/components/Layout/Profile.jsx - Member profiles → Certificate queries: fetches certificates
src/components/Layout/Profile.jsx - User and projects API → API client: injects endpoints
src/features/users/userApi.js - Member → Event participation: registers or submits
README.md - Event participation → Participation API: requests participation data
- Participation API → API client: injects endpoints
src/features/participation/participationApi.js - Administrator → Admin routes: manages portal
README.md - Admin routes → Admin workspace: uses workspace
src/app/admin/page.jsx - Admin routes → Admin dashboard: renders dashboard
src/app/admin/page.jsx - Admin routes → Participation management: opens participation tools
- Participation management → Participation API: manages event entries
src/components/participation-content.jsx - Admin dashboard → Admin data API: loads overview
src/components/dashboard-content.jsx - Admin data API → API client: uses API client
- Content API → API client: injects endpoints
src/features/content/contentApi.js - API client → CPCCU backend: sends API requests
src/services/baseApi.js - Admin loading views → Shared card UI: uses cards
src/components/page-skeleton.jsx - Admin loading views → Shared skeleton UI: uses placeholders
src/components/page-skeleton.jsx - Event participation → Participation rules: applies rules
- Published content → Hackathon utilities: uses phase data
src/lib/public-content.js