AfyaChecker is a web application that allows users to prompt their health symptoms in both Swahili and English and get a preliminary diagnosis and advice. The frontend is built with React and the backend is a FastAPI server that uses the ChatGPT API for analysis.
Frontend
Backend
Tools & Platforms
- Python 3.8+
- Node.js 14+
- OpenAI Developer Account
frontend/: Contains the React application.backend/: Contains the FastAPI backend.
- Navigate to the
backenddirectory:cd backend - Install the required Python packages:
pip install -r requirements.txt
- Set your OpenAI API key as an environment variable:
export GROQ_API_KEY='your_GROQ_API_KEY'
- Run the backend server:
uvicorn main:app --host 127.0.0.1 --port 8000
- Navigate to the
frontenddirectory:cd frontend - Install the required npm packages:
npm install
- Start the React development server:
npm start
- Open your web browser and navigate to
http://localhost:3000. - Interact with an AI.
This project is licensed under the MIT License, see the LICENSE.md file for details.
If you have any questions or issues, please open an issue on GitHub or contact mwalyangashadrack@gmail.com
