TreatWell Next is your comprehensive healthcare management platform, designed to bridge the gap between patients and doctors. From finding the right specialist to managing your health records and prescriptions, experience seamless healthcare delivery with modern technology and user-centric design.
- π Tools & Technologies
- π Project Management
- π©Ί Project Status
- π Live Demo
- π₯ Team Members
- π API Documentation
- π» Tech Stack
- π Project Description
- π οΈ Getting Started
- πΊοΈ Database Models
Comprehensive API documentation with endpoints for:
- Authentication: Patient/Doctor login, registration, password reset
- Appointments: Booking, management, meeting links
- Health Data: Patient health metrics and tracking
- Prescriptions: Digital prescription management
- Reviews: Patient and doctor feedback system
| Frontend | |
|---|---|
| Next.js | React framework with server-side rendering and API routes |
| React | Component-based UI library for building interactive interfaces |
| TypeScript | Type-safe JavaScript for better development experience |
| Tailwind CSS | Utility-first CSS framework for modern responsive design |
| Framer Motion | Animation library for smooth and interactive UI animations |
| Chart.js | Flexible charting library for health data visualization |
| Lucide React | Beautiful and consistent icon library |
| Backend | |
| Next.js API Routes | Serverless functions for building RESTful APIs |
| MongoDB | NoSQL database for scalable document storage |
| Mongoose | ODM library for MongoDB with schema validation |
| Nodemailer | Email delivery service for notifications and OTP |
| Authentication & Security | |
| NextAuth.js | Authentication library with Google OAuth support |
| JWT | JSON Web Tokens for secure session management |
| bcryptjs | Password hashing for secure user authentication |
| Document Generation | |
| jsPDF | Client-side PDF generation for prescriptions |
| html2canvas | HTML to canvas conversion for document capture |
| Development Tools | |
| ESLint | Code linting and quality assurance |
| UUID | Unique identifier generation for appointments |
TreatWell Next is a comprehensive healthcare management platform that revolutionizes the way patients and doctors interact. Built with modern web technologies, it provides a seamless experience for healthcare delivery, from appointment booking to prescription management and health tracking. π₯β¨
-
π Secure Authentication
- Email/password registration and login
- Google OAuth integration for quick access
- OTP-based password reset with email verification
-
π¨ββοΈ Doctor Discovery & Booking
- Browse comprehensive doctor listings with specialties
- Advanced search and filtering by name, specialty, and location
- View doctor profiles, qualifications, and patient reviews
- Real-time appointment booking with available time slots
-
π Personal Health Dashboard
- Track medical history and past consultations
- Monitor health metrics (BMI, blood pressure) with visual charts
- Access and download digital prescriptions as PDFs
- View payment history and appointment status
-
π³ Payment Integration
- Secure payment processing for consultations
- Payment history tracking and receipt management
-
β Review & Rating System
- Rate and review doctors after appointments
- Help other patients make informed decisions
-
π Professional Authentication
- Separate doctor registration with BMDC verification
- Secure login with professional credentials
- Profile management with qualifications and specialties
-
π Appointment Management
- View and manage upcoming and past appointments
- Access patient medical history for consultations
- Schedule and confirm appointments
-
π Digital Prescription System
- Create, manage, and issue digital prescriptions
- Link prescriptions to specific appointments and patients
- Generate PDF prescriptions for patient download
-
πΉ Video Consultation Ready
- Generate meeting links for virtual consultations
- Email integration for sending meeting invitations
-
π Analytics & Statistics
- Real-time platform statistics (patients, doctors, appointments)
- Health data visualization and trends
-
ποΈ BMDC Integration
- Database seeding with verified medical professionals
- Doctor verification against medical council records
-
π§ Email Notifications
- Automated email delivery for OTP verification
- Meeting link distribution for video consultations
- Appointment confirmations and reminders
Follow these steps to set up the project locally:
- Clone the Repository
Clone the repository to your local machine:
git clone https://github.com/yourusername/treatwell-next.git- Navigate to the Project Directory
Move into the project directory:
cd treatwell-next- Install Dependencies
Install the required dependencies:
npm install- Set Up Environment Variables
Create a
.env.localfile in the root directory and add the following variables:
# Database
MONGODB_URI=your_mongodb_connection_string
# Authentication
JWT_SECRET=your_jwt_secret_key
NEXTAUTH_SECRET=your_nextauth_secret
NEXTAUTH_URL=http://localhost:3000
# Google OAuth
GOOGLE_CLIENT_ID=your_google_client_id
GOOGLE_CLIENT_SECRET=your_google_client_secret
# Email Configuration
EMAIL_USER=your_email@gmail.com
EMAIL_PASS=your_app_password-
Set Up Email for Notifications (Optional) Follow the instructions in
EMAIL_SETUP.mdto configure email delivery for OTP and meeting links. -
Run the Development Server
Start the application:
npm run dev- Access the Application
Open your browser and navigate to
http://localhost:3000to access TreatWell Next.
- MongoDB Setup: Ensure your MongoDB instance is running and accessible
- Email Configuration: Set up Gmail app passwords for email functionality
- File Uploads: The
public/uploads/directory is used for profile pictures - BMDC Seeding: Use the
/api/seed-bmdcendpoint to populate doctor verification data
The application uses MongoDB with Mongoose ODM and includes the following data models:
- π€ Patient: User profiles, authentication, and personal information
- π¨ββοΈ Doctor: Medical professional profiles with BMDC verification
- π Appointment: Booking management with payment and meeting integration
- π Prescription: Digital prescription management linked to appointments
- π HealthData: Patient health metrics and tracking data
- β Review: Patient and doctor review/rating system
- π₯ BmdcDoctor: Medical council verification database
- Patients can book multiple appointments with different doctors
- Doctors can manage appointments and create prescriptions
- Each prescription is linked to a specific appointment
- Health data is tracked per patient with historical records
- Reviews are connected to both patients and doctors for transparency
TreatWell Next - Revolutionizing Healthcare Management
Built with β€οΈ by Ruponti Muin Nova & Jawad Anzum Fahim
