Skip to content

kay-rey/clarifymed

Repository files navigation

ClarifyMed 🏥

AI-powered medical terminology clarification platform that bridges the gap between complex medical language and everyday understanding.

🎯 Key Features

  • Smart Explanations: Real-time medical term clarification using Gemini AI
  • Dual Understanding: Both simplified and technical definitions
  • Secure Access: Protected user data with Auth0
  • History Tracking: Save and reference past explanations
  • Medical Safety: Built-in verification and disclaimer system

🚀 Quick Start

  1. Clone and Install
git clone https://github.com/kay-rey/clarifymed.git
cd clarifymed
npm install
  1. Set up Environment
cp .env.example .env.local

Add your credentials to .env.local:

  • AUTH0_DOMAIN - Auth0 application domain
  • AUTH0_CLIENT_ID - Auth0 client ID
  • AUTH0_CLIENT_SECRET - Auth0 client secret
  • MONGODB_URI - MongoDB connection string
  • GEMINI_API_KEY - Google Gemini AI API key
  1. Start Development
git checkout dev
npm run dev

Visit http://localhost:3000

🛠️ Tech Stack

  • Frontend: Next.js 15 (App Router), TypeScript, Tailwind CSS, shadcn
  • Backend: MongoDB, Next.js API Routes
  • AI: Google Gemini AI
  • Auth: Auth0
  • Testing: Jest, React Testing Library
  • API: Axios

📁 Project Structure

src/
├── app/              # Pages and API routes
│   ├── api/         # Backend endpoints
│   └── (routes)/    # Frontend pages
├── components/       # React components
├── lib/
│   ├── db/          # Database utilities
│   ├── models/      # TypeScript types
│   └── services/    # External services
└── styles/          # Global styles

🔄 Development Workflow

  1. Start from dev
git checkout dev
git pull origin dev
  1. Create feature branch
git checkout -b feature/your-feature
  1. Commit changes
git add .
git commit -m "Add: your feature description"
git push origin feature/your-feature
  1. Create PR to dev branch

📝 Available Scripts

  • npm run dev - Development server
  • npm run build - Production build
  • npm start - Production server
  • npm run lint - Code linting

🧪 Testing

# Run all tests
npm run test

# Run tests in watch mode
npm run test:watch

# Run coverage report
npm run test:coverage

🔐 Security Notes

  • Never commit .env.local
  • Use test credentials for development
  • Follow Auth0 security guidelines
  • Implement proper error handling
  • Validate all user inputs

👥 Team

📚 Resources


Built with 💚 for AI Hackfest 2025 | License

About

Breaking down medical jargon into clear, everyday language - built for the AI Hackfest 2025.

Topics

Resources

License

Contributing

Stars

Watchers

Forks

Contributors