How tanishktewetia/smile_connect works
SmileConnect is a dental-clinic website with informational pages and appointment booking. Visitors enter through the routed React app, browse clinic services and editorial content, and can submit a booking/contact form; the frontend posts appointments to an Express API, which validates and stores them in Supabase. The admin-only appointment retrieval route is a separate capability. The README documents the API-to-database behavior; source excerpts show the booking call chain. Some page and section wiring is supported by the SOURCE INDEX rather than sampled implementation.
Main entry points: App.js Route application · Home.js Home page · Services.js Services page · Contactus.js Contact page
Components 30
Website and pages
- Route application
src/App.js - Home page
src/pages/Home.js - About page
src/pages/About.js - Services page
src/pages/Services.js - Contact page
src/pages/Contact/Contactus.js - Legal pages
src/pages/PrivacyPolicy.js - Site footer
src/sections/Footer/Footer.js - Navigation
src/components/Navbar/Navbar.js - WhatsApp contact
src/components/WhatsAppButton/WhatsAppButton.js
Clinic content
- Blog listing
src/pages/BlogsPage.js - Blog article
src/pages/SingleBlog/SingleBlog.js - Blog content data
src/sections/Blogs/BlogData.js - Clinic details
src/config/clinic.js - Home services
src/sections/Services/Services.js - Service data
src/sections/Services/ServiceData.js - Service details
src/sections/ServiceDetails/ServiceDetails.js - FAQs
src/sections/Faq/Faq.js - Clinic gallery
src/sections/Gallery/Gallery.js - Testimonials
src/sections/Testimonial/Testimonial.js
Appointment booking
- Contact booking form
src/components/ContactForm/ContactForm.js - Home booking form
src/sections/Banner/AppointmentForm.js - Appointment API client
src/services/appointmentService.js
Booking API and storage
- Express server
backend/server.js - Appointment routes
backend/src/routes/appointmentRoutes.js - Admin authorization
backend/src/middleware/requireAdmin.js - Appointment handler
backend/src/handlers/appointmentHandler.js - Supabase client
backend/src/utils/supabaseClient.js - Appointments table
backend/sql/Schema.sql
Other components
- Patient or visitor
- Supabase Postgres
Connections 33
- Patient or visitor → Route application: opens site
src/App.js - Route application → Home page: routes to
src/App.js - Route application → About page: routes to
src/App.js - Route application → Services page: routes to
src/App.js - Route application → Contact page: routes to
src/App.js - Route application → Blog listing: routes to
src/App.js - Route application → Blog article: routes to
src/App.js - Route application → Legal pages: routes to
src/App.js - Blog listing → Blog content data: reads posts
src/pages/BlogsPage.js - Blog article → Blog content data: finds article
src/pages/SingleBlog/SingleBlog.js - Home page → Home services: renders
src/pages/Home.js - Home services → Service data: reads services
src/sections/Services/Services.js - Services page → Service details: renders
src/pages/Services.js - About page → FAQs: renders
src/pages/About.js - Services page → Clinic gallery: renders
src/pages/Services.js - Home page → Testimonials: renders
src/pages/Home.js - Home page → Navigation: renders
src/pages/Home.js - Contact page → Contact booking form: renders
src/pages/Contact/Contactus.js - Contact page → Site footer: renders
src/pages/Contact/Contactus.js - Navigation → Clinic details: reads details
src/components/Navbar/Navbar.js - Site footer → Clinic details: reads details
src/sections/Footer/Footer.js - Route application → WhatsApp contact: renders
src/App.js - Contact booking form → Appointment API client: submits form
src/components/ContactForm/ContactForm.js - Home booking form → Appointment API client: submits form
src/sections/Banner/AppointmentForm.js - Patient or visitor → Contact booking form: enters booking
README.md - Patient or visitor → Home booking form: enters booking
README.md - Appointment API client → Express server: posts appointment
README.md - Express server → Appointment routes: mounts routes
backend/server.js - Appointment routes → Appointment handler: dispatches
backend/src/routes/appointmentRoutes.js - Appointment routes → Admin authorization: protects retrieval
backend/src/routes/appointmentRoutes.js - Appointment handler → Supabase client: queries
backend/src/handlers/appointmentHandler.js - Supabase client → Supabase Postgres: connects
README.md - Appointment handler → Appointments table: reads and writes
README.md