How dwisusanto29/doctor_appointment_booking_app works
This is a Next.js doctor-discovery frontend: users browse specialties, view category-based doctor results, and open doctor details with suggestions. The sampled code fetches category and doctor data directly from an external Backendless API; Kinde provides authentication endpoints, although the middleware file’s activation is unclear. The README names appointment booking, but the booking component is commented out in the sampled detail view, so no booking workflow is represented. Several listed page components were not sampled, so their internal wiring is left unspecified.
Main entry points: [cname]/page.jsx Category results · [id]/page.jsx Doctor detail page · CategoryList.jsx Category sidebar · DoctorDetail.jsx Doctor detail
Components 14
Doctor discovery
- Home page
app/page.js - Category search
app/_components/CategorySearch.jsx - Category sidebar
app/(route)/search/_components/CategoryList.jsx - Search layout
app/(route)/search/layout.jsx - Category results
app/(route)/search/[cname]/page.jsx - Doctor list
app/_components/DoctorList.jsx - Backendless categories
Doctor profiles
- Backendless doctors
- Doctor detail page
app/(route)/details/[id]/page.jsx - Doctor detail
app/(route)/details/[id]/_components/DoctorDetail.jsx - Doctor suggestions
app/(route)/details/[id]/_components/DoctorSuggestionList.jsx
Authentication
- Kinde auth route
app/api/auth/[kindeAuth]/route.js - Kinde service
Other components
- Visitor
Connections 12
- Visitor → Home page: opens
- Visitor → Category results: selects category
- Visitor → Doctor detail page: opens profile
- Category search → Backendless categories: fetches categories
- Category sidebar → Backendless categories: fetches categories
- Search layout → Category sidebar: renders sidebar
- Category results → Doctor list: renders list
- Category results → Backendless doctors: fetches doctors
- Doctor detail page → Doctor detail: renders detail
- Doctor detail → Backendless doctors: fetches profile
- Doctor detail page → Doctor suggestions: renders suggestions
- Kinde auth route → Kinde service: delegates auth