A React web application that helps users get medical treatment recommendations, find clinical trials, and access relevant research papers using AI-powered analysis.
- AI-Powered Analysis: Uses Gemini API to extract structured medical data from text
- Clinical Trial Finder: Real-time search of ClinicalTrials.gov with filtering
- Research Papers: PubMed integration for relevant medical literature
- Treatment Pathways: Personalized recommendations based on analysis
- Multi-level Search: Smart search strategies for better results
- Dark navy blue color scheme (#1a237e)
- Modern, clean interface
- Responsive design
- Smooth navigation between pages
- Real-time data from medical APIs
- Node.js (v14 or higher)
- npm or yarn
- API keys for Gemini and NCBI
-
Clone the repository:
git clone https://github.com/vanishaswabhanam/hackgt.git cd hackgt -
Install frontend dependencies:
npm install
-
Install backend dependencies:
cd backend npm install -
Set up environment variables:
# Copy the example file cp config.env.example config.env # Edit config.env and add your API keys: # GEMINI_API_KEY=your_gemini_api_key_here # NCBI_API_KEY=your_ncbi_api_key_here
-
Get API Keys:
- Gemini API: Get free API key from Google AI Studio
- NCBI API: Get free API key from NCBI Account Settings
-
Populate the database:
node populate-db.js
-
Start the servers:
Terminal 1 (Backend):
cd backend npm startTerminal 2 (Frontend):
npm start
-
Open the application:
- Frontend: http://localhost:3000
- Backend API: http://localhost:5001
- Enter medical text in the input field (e.g., "Patient has breast cancer and needs chemotherapy")
- Click "Analyze & Get Recommendations" to get structured JSON output
- Click "View Service Options →" to see available services
- Explore the three services:
- Treatment Pathway Recommendation: AI-generated treatment suggestions
- Clinical Trial Finder: Real clinical trials with filtering options
- Relevant Research: Latest PubMed articles
src/
├── components/
│ ├── HomePage.js
│ ├── ResultsPage.js
│ ├── TreatmentPathwayPage.js
│ ├── ClinicalTrialPage.js
│ └── ResearchPage.js
├── App.js
├── index.js
└── index.css
- React 18
- React Router DOM
- CSS3
- HTML5
npm start- Runs the app in development modenpm build- Builds the app for productionnpm test- Launches the test runnernpm eject- Ejects from Create React App (one-way operation)