How harshpatel2414/zivacare-app works
ZivaCare is a mobile care-discovery and appointment-booking app. The main user journey is onboarding or sign-in, browsing doctors and treatments, selecting a schedule and submitting an appointment, then tracking appointments and notifications. Separate flows support profile updates and doctor or treatment reviews. The tree identifies Firebase service modules and Appwrite auth code; sampled excerpts confirm some UI and auth behavior, but not every screen-to-service connection, so uncertain wiring is omitted.
Main entry points: _layout.jsx Tab Routes · (tabs)/index.jsx Home · app/index.jsx Onboarding · EnterMobileNumber.jsx Mobile Sign-in
Components 26
App Navigation
- Onboarding
app/index.jsx - Tab Routes
app/(tabs)/_layout.jsx - Mobile Sign-in
app/screens/EnterMobileNumber.jsx
Care Discovery
- Home
app/(tabs)/index.jsx - Doctor Detail
app/home/doctors/[id].jsx - Treatment Detail
app/home/treatments/[id].jsx - Schedule
app/home/schedule/[id].jsx
Booking and Account
- Book Appointment
app/home/BookAppointment.jsx - Appointments
app/(tabs)/appointments.jsx - Notifications
app/(tabs)/notifications.jsx - Profile
app/(tabs)/profile.jsx - Edit Profile
app/auth/update-profile.jsx - Doctor Review
app/screens/DoctorReview.jsx - Treatment Review
app/screens/TreatmentReview.jsx
Backend Services
- Auth Context
context/AuthContext.js - Appointment Service
app/firebase/appointment.js - Doctor Service
app/firebase/doctor.js - Treatment Service
app/firebase/treatment.js - Notification Service
app/firebase/notification.js - User Service
app/firebase/user.js - Firebase Setup
app/firebase/firebase.js - Appwrite Auth
appwrite/auth.js
Other components
- Patient
- Firestore
- Appwrite
- Local Storage
Connections 24
- Patient → Onboarding: starts
- Onboarding → Mobile Sign-in: continues to
- Patient → Mobile Sign-in: signs in
- Mobile Sign-in → Appwrite Auth: requests auth
- Appwrite Auth → Appwrite: creates session
- Onboarding → Local Storage: saves status
- Patient → Home: browses
- Home → Doctor Detail: opens doctor
- Home → Treatment Detail: opens treatment
- Doctor Detail → Schedule: opens schedule
- Schedule → Book Appointment: continues booking
- Patient → Book Appointment: submits details
- Book Appointment → Appointment Service: requests booking
- Doctor Review → Doctor Service: submits review
- Treatment Review → Treatment Service: submits review
- Treatment Detail → Firestore: reads detail
- Auth Context → Firestore: subscribes to notifications
- Auth Context → Local Storage: saves user
- Profile → Edit Profile: opens settings
- Edit Profile → Appointment Service: uploads image
- Tab Routes → Home: routes to
- Tab Routes → Appointments: routes to
- Tab Routes → Notifications: routes to
- Tab Routes → Profile: routes to