How nekomanaja/final-project works
DONIX is a streamer donation platform: users configure a public donation page and payment methods; donors submit donations, which the server verifies and stores; streamers manage donations and configure streaming overlays. The graph captures the routed frontend, API boundary, backend domain handlers, persistence, and OTP/slip-verification integrations. Sampled excerpts and SOURCE INDEX references support the shown relationships; several frontend feature details and unsampled controllers are represented at their exact tree paths, with uncertain links omitted.
Main entry points: App.js Application routes · api.js API client · app.js HTTP API and route mounting · donationController.js Donation processing and reporting
Components 31
Web application
- Application routes
client/src/App.js - Dashboard
client/src/pages/Dashboard.jsx - Public donation page
client/src/pages/DonorPage.jsx - Public profiles and discovery
client/src/pages/PublicProfilePage.jsx - Donation history
client/src/pages/HistoryPage.jsx - Account and page settings
client/src/pages/Account.jsx - API client
client/src/utils/api.js
Donation workflow
- Public streamer data
server/controllers/publicController.js - Donation routes
server/routes/donations.js - Donation processing and reporting
server/controllers/donationController.js - Slip verification
server/services/slipVerificationService.js - Slip parsing
server/utils/slipParser.js
Identity and profiles
- Authentication routes
server/routes/auth.js - Authentication and OTP
server/controllers/authController.js - User routes
server/routes/users.js - User profile operations
server/controllers/userController.js - OTP delivery service
server/services/notificationService.js
Widgets and overlays
- Widget configuration
client/src/pages/WidgetPage.jsx - Overlay displays
client/src/pages/OverlayAlertPage.jsx - Widget preview and storage
client/src/components/Widget/WidgetPreview.jsx - Widget routes
server/routes/widgets.js - Widget configuration operations
server/controllers/widgetController.js
Backend API and persistence
- HTTP API and route mounting
server/app.js - Public routes
server/routes/public.js - User records
server/Models/User.js - Donation records
server/Models/Donation.js - Widget records
server/Models/Widget.js - OTP records
server/Models/Otp.js
Other components
- Visitor / donor
- Streamer
- Email / SMS providers
Connections 44
- Visitor / donor → Application routes: opens pages
client/src/App.js - Streamer → Application routes: opens dashboard
client/src/App.js - Application routes → Dashboard: routes to
client/src/App.js - Application routes → Public donation page: routes to
client/src/App.js - Application routes → Public profiles and discovery: routes to
client/src/App.js - Application routes → Donation history: routes to
client/src/App.js - Application routes → Account and page settings: routes to
client/src/App.js - Application routes → Widget configuration: routes to
client/src/App.js - Application routes → Overlay displays: routes to
client/src/App.js - Dashboard → API client: requests data
client/src/pages/Dashboard.jsx - Public donation page → API client: submits donation
client/src/pages/DonorPage.jsx - Donation history → API client: loads history
client/src/pages/HistoryPage.jsx - Account and page settings → API client: updates settings
client/src/pages/Account.jsx - Public profiles and discovery → API client: loads public data
- Widget configuration → API client: saves configuration
- Overlay displays → API client: loads overlay data
- Widget configuration → Widget preview and storage: previews settings
- API client → HTTP API and route mounting: HTTP requests
- HTTP API and route mounting → Authentication routes: mounts routes
server/app.js - HTTP API and route mounting → User routes: mounts routes
server/app.js - HTTP API and route mounting → Public routes: mounts routes
server/app.js - HTTP API and route mounting → Donation routes: mounts routes
server/app.js - HTTP API and route mounting → Widget routes: mounts routes
server/app.js - Authentication routes → Authentication and OTP: dispatches to
server/routes/auth.js - User routes → User profile operations: dispatches to
server/routes/users.js - Public routes → Public streamer data: dispatches to
server/routes/public.js - Donation routes → Donation processing and reporting: dispatches to
server/routes/donations.js - Widget routes → Widget configuration operations: dispatches to
server/routes/widgets.js - Authentication and OTP → User records: reads and writes
server/controllers/authController.js - Authentication and OTP → OTP records: reads and writes
server/controllers/authController.js - Authentication and OTP → OTP delivery service: sends OTP
server/controllers/authController.js - User profile operations → User records: reads and writes
server/controllers/userController.js - User profile operations → OTP records: reads and writes
server/controllers/userController.js - User profile operations → OTP delivery service: sends OTP
server/controllers/userController.js - OTP delivery service → Email / SMS providers: delivers messages
server/services/notificationService.js - Public streamer data → User records: reads profiles
server/controllers/publicController.js - Public streamer data → Widget records: reads overlays
server/controllers/publicController.js - Public streamer data → Donation records: reads donations
server/controllers/publicController.js - Donation processing and reporting → Slip verification: verifies slips
server/controllers/donationController.js - Slip verification → Slip parsing: parses QR and text
server/services/slipVerificationService.js - Donation processing and reporting → User records: reads streamer
server/controllers/donationController.js - Donation processing and reporting → Widget records: checks missions
server/controllers/donationController.js - Donation processing and reporting → Donation records: stores and queries
server/controllers/donationController.js - Widget configuration operations → Widget records: reads and writes
server/controllers/widgetController.js