Skip to content

About

Repository for team Bytes Maverick

Resources

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

Β 

History

71 Commits

Folders and files

Repository files navigation

πŸ₯ TreatWell Next

TreatWell Next Banner

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.

πŸ“‘ Table of Contents

πŸš€ Tools & Technologies

Next.js React TypeScript MongoDB Mongoose Tailwind CSS
NextAuth.js JWT Nodemailer Chart.js Framer Motion ESLint

πŸ“‹ Project Management

GitHub

🌐 Live Demo

Click here!.

πŸ‘₯ Team Members

Ruponti Muin Nova


Frontend β€’ Backend β€’ API Testing β€’ UI/UX

Jawad Anzum Fahim


Backend β€’ Database β€’ API Design

πŸ“˜ API Documentation

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

πŸ’» Tech Stack

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

πŸ“œ Project Description

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. πŸ₯✨

πŸ₯ Patient Portal Features

  • πŸ” 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

πŸ‘¨β€βš•οΈ Doctor Portal Features

  • πŸ”’ 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

πŸ—οΈ System Features

  • πŸ“Š 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

πŸ› οΈ Getting Started

Follow these steps to set up the project locally:

  1. Clone the Repository
    Clone the repository to your local machine:
git clone https://github.com/yourusername/treatwell-next.git
  1. Navigate to the Project Directory
    Move into the project directory:
cd treatwell-next
  1. Install Dependencies
    Install the required dependencies:
npm install
  1. Set Up Environment Variables Create a .env.local file 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
  1. Set Up Email for Notifications (Optional) Follow the instructions in EMAIL_SETUP.md to configure email delivery for OTP and meeting links.

  2. Run the Development Server
    Start the application:

npm run dev
  1. Access the Application Open your browser and navigate to http://localhost:3000 to access TreatWell Next.

πŸ“ Additional Setup Notes

  • 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-bmdc endpoint to populate doctor verification data

πŸ—ΊοΈ Database Models

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

πŸ”— Key Relationships

  • 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

About

Repository for team Bytes Maverick

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages