ai powered dental clinic
# Dental Clinic Ethiopia
A comprehensive dental clinic management system for Ethiopia, featuring:
## Features
### Backend API (Node.js/TypeScript)
- RESTful API for managing patients, doctors, and appointments
- AI-powered symptom checker and treatment planner
- Authentication with JWT tokens
- Role-based access control (patient, doctor, admin)
- Real-time appointment scheduling
- Medical record management
- AI chat assistant for dental queries
### Frontend (React/TypeScript)
- Modern React application with TypeScript
- Responsive design with Tailwind CSS
- Zustand state management
- React Query for data fetching
- Internationalization (i18n)
- Theme switching (light/dark mode)
- Real-time notifications
- Protected routes and authentication
### Database
- PostgreSQL with Supabase
- Comprehensive schema for dental clinic operations
- AI chat sessions and messages
- Medical records and appointments
## Technology Stack
### Backend
- Node.js
- Express.js
- TypeScript
- Supabase (PostgreSQL)
- OpenAI/Gemini AI
- JWT Authentication
- Winston Logging
### Frontend
- React 18
- TypeScript
- Vite
- Tailwind CSS
- Zustand
- React Query
- i18next
- Framer Motion
## Project Structure
```
dental-clinic-ethiopia/
├── backend/
│ ├── src/
│ │ ├── routes/
│ │ ├── services/
│ │ ├── middleware/
│ │ └── index.ts
│ ├── package.json
│ └── tsconfig.json
├── frontend/
│ ├── src/
│ │ ├── routes/
│ │ ├── pages/
│ │ ├── components/
│ │ ├── contexts/
│ │ ├── services/
│ │ ├── store/
│ │ └── index.css
│ ├── package.json
│ └── tsconfig.json
├── supabase/
│ └── migrations/
│ └── 001_initial_schema.sql
├── .env (backend)
├── .env (frontend)
└── README.md
```
## Installation
### Backend Setup
1. Clone the repository
2. Navigate to the backend directory
3. Install dependencies: `npm install`
4. Create a `.env` file with your environment variables
5. Run the server: `npm run dev`
### Frontend Setup
1. Navigate to the frontend …