How andaru0495/genkan-institute-project works
Genkan Institute is a Japanese-language and culture course website with class discovery, teacher and book information, student registration, and an admin console. The main user journey is browsing available classes, submitting an application, recording it, and sending WhatsApp notifications. Admins manage course and content records, review reports, and trigger or retrieve backups. The graph follows the sampled pages and routes plus SOURCE INDEX references; several unsampled admin flows are represented at their exact API directories, and their internal connections are omitted where evidence was unavailable.
Main entry points: mongodb.ts MongoDB data · app/page.tsx Homepage · daftar/page.tsx Registration page · admin Content management APIs
Components 27
Public website
- Homepage
app/page.tsx - Class catalog
app/kelas/page.tsx - Class details
app/kelas/[id]/page.tsx - Teacher pages
app/pengajar/page.tsx - Teacher details
app/pengajar/[id]/page.tsx - Book catalog
app/buku/app.tsx - About and testimonials
app/tentang/page.tsx
Course enrollment
- Registration page
app/daftar/page.tsx - Registration form
components/DaftarForm.tsx - Application handler
app/api/daftar/route.ts - Contact handler
app/api/kontak/route.ts
Admin operations
- Admin dashboard
app/admin/(dashboard) - Content management APIs
app/api/admin - Reports and exports
app/api/admin/laporan - Backup panel
components/admin/BackupsPanel.tsx - Backup handlers
app/api/admin/backups - Scheduled backup
app/api/cron/backup/route.ts - Admin authentication
auth.ts
Data and integrations
- MongoDB data
lib/mongodb.ts - Class status rules
lib/kelasStatus.ts - Class term rules
lib/kelasTerm.ts - Image storage
lib/cloudinary.ts - WhatsApp messaging
lib/fonnte.ts - Backup logic
lib/backup.ts - Fonnte service
- Cloudinary service
Other components
- Site visitor
Connections 41
- Site visitor → Homepage: browses
app/page.tsx - Site visitor → Class catalog: browses
- Site visitor → Teacher pages: browses
- Site visitor → Book catalog: browses
- Site visitor → About and testimonials: browses
- Homepage → MongoDB data: reads content
app/page.tsx - Homepage → Class status rules: filters classes
app/page.tsx - Homepage → Class catalog: links to
- Homepage → Teacher pages: links to
- Class catalog → MongoDB data: reads classes
app/kelas/page.tsx - Class catalog → Class details: opens details
- Class details → MongoDB data: reads class
app/kelas/[id]/page.tsx - Teacher pages → MongoDB data: reads teachers
app/pengajar/page.tsx - Teacher pages → Teacher details: opens details
- Teacher details → MongoDB data: reads teacher
app/pengajar/[id]/page.tsx - Book catalog → MongoDB data: reads books
app/buku/app.tsx - About and testimonials → MongoDB data: reads media
app/tentang/page.tsx - Site visitor → Registration page: starts signup
app/daftar/page.tsx - Registration page → MongoDB data: loads classes
app/daftar/page.tsx - Registration page → Class status rules: filters classes
app/daftar/page.tsx - Registration page → Registration form: renders
app/daftar/page.tsx - Registration form → Application handler: submits application
- Application handler → MongoDB data: checks and saves
app/api/daftar/route.ts - Application handler → WhatsApp messaging: sends notices
app/api/daftar/route.ts - WhatsApp messaging → Fonnte service: sends messages
- Site visitor → Contact handler: sends inquiry
- Contact handler → MongoDB data: uses data store
app/api/kontak/route.ts - Contact handler → WhatsApp messaging: sends notice
app/api/kontak/route.ts - Admin dashboard → Content management APIs: manages records
- Admin dashboard → Reports and exports: views reports
app/admin/(dashboard)/laporan/page.tsx - Admin dashboard → Backup panel: renders panel
app/admin/(dashboard)/backups/page.tsx - Backup panel → Backup handlers: requests backup
- Content management APIs → MongoDB data: reads and writes
app/api/admin/kelas/route.ts - Content management APIs → Image storage: uploads images
app/api/admin/kelas/route.ts - Image storage → Cloudinary service: uploads images
- Content management APIs → Class term rules: computes terms
app/api/admin/kelas/route.ts - Reports and exports → MongoDB data: queries records
app/api/admin/laporan/export/route.ts - Backup handlers → Backup logic: runs backup
- Scheduled backup → Backup logic: runs backup
app/api/cron/backup/route.ts - Backup logic → MongoDB data: backs up data
lib/backup.ts - Admin authentication → MongoDB data: checks credentials
auth.ts