OrthoBot AI is a virtual healthcare assistant built with React (frontend) and Node.js (backend). It provides AI-powered recovery guidance, rehab routines, diet plans, and real-time chat support for patients after orthopedic surgery.
- Features
- Tech Stack
- Project Structure
- Prerequisites
- Quick Start
- Configuration
- MongoDB Atlas Setup Guide
- Troubleshooting
- License
- Contributing
- Support
- AI-Powered Chatbot: Provides instant answers to patient queries
- Knowledge Base Integration: Delivers accurate rehab routines, diet plans, and post-op care guidance
- Voice & Translation Support: Enables voice-enabled conversations with real-time language translation
- User Authentication: Secure login/signup powered by Clerk
- Responsive Design: React-based frontend designed for smooth, mobile-friendly patient experience
- React 19 with Vite
- Clerk for secure login/signup with session management
- Conversational UI optimized for patient–bot interactions
- Built-in speech-to-text and text-to-speech for natural communication
- Built-in speech-to-text and text-to-speech for natural communication
- Node.js with Express for API handling
- CORS enabled for secure frontend-backend communication
- JSON-based knowledge base for structured post-op orthopedic data
- Keyword search for relevant knowledge retrieval
- Groq API integration for AI-driven patient-friendly answers
- Environment variables for secure API key management
- Error logging and reliable response handling
- MongoDB Atlas (cloud database)
orthobot-ai/
├── frontend/ # React + Vite (UI, Clerk auth, voice features)
├── backend/ # Node.js + Express (APIs, MongoDB, Groq AI)
├── README.md # Project documentation
└── package.json # Root config for scripts
- Node.js (v16 or higher)
- npm or yarn
- Groq API key → Get one here
- MongoDB Atlas account → Sign up here
git clone <repository-url>
cd orthobot-ai
npm run install:allcd backend
# Copy example file
cp .env.example .env
# Edit .env with your API key
# GROQ_API_KEY=your_actual_groq_api_key_here
# PORT=3000Or use the Windows setup script:
npm run setup:env# Run both frontend and backend simultaneously
npm run dev:full
# Or run separately:
# Terminal 1: npm run dev (frontend on :5173)
# Terminal 2: npm run backend (backend on :3000)Create a .env file inside the backend/ folder:
GROQ_API_KEY=your_actual_groq_api_key_here
MONGODB_URI=mongodb+srv://<username>:<password>@<cluster>.mongodb.net/orthobot
PORT=3000- Create an Atlas account → cloud.mongodb.com
- Create free cluster (M0, AWS recommended)
- Configure Database User + Network Access
- Copy connection string (Node.js driver)
- Add to
.envasMONGODB_URI
{
shareId: "uuid-string",
shareType: "full_chat" | "single_message",
title: "Chat title",
messages: [...],
singleMessage: {...},
createdAt: Date,
viewCount: Number,
expiresAt: Date
}- Never commit
.envto GitHub - Restrict IPs in production
- Use strong DB passwords & rotate regularly
- Backend not starting: Check Node.js version and dependencies
- File upload fails: Verify file size and format
- AI processing errors: Check Groq API key and quota
- CORS issues: Ensure backend is running on port 3000
- Missing .env file: Create
.envfile in backend folder with your API key
This project is licensed under the MIT License © 2025 Krishna Singh
- Fork the repository
- Create a feature branch
- Commit your changes
- Push to the branch
- Open a Pull Request
For issues and questions, please check the troubleshooting section or create an issue in the repository.