Telemedicine and Health Consultation App with AI-based Symptom Checker
- frontend/: Contains the frontend code for the web application
- backend/: Contains the Flask backend API
- database/: Contains the PostgreSQL database schema and connection module
- ai-module/: Contains the AI model for symptom checking
- AI-based symptom checker that predicts potential health conditions
- User registration and authentication
- Storage of symptom inputs and prediction results
- User history tracking
-
Install Python dependencies:
cd backend pip install -r requirements.txt -
Set up the PostgreSQL database:
- Follow the instructions in
backend/database/README.md
- Follow the instructions in
-
Create a
.envfile based on.env.example:cp .env.example .env # Edit .env with your database credentials -
Run the Flask application:
python app.py
- POST /api/users: Register a new user
- POST /api/users/login: Login a user by email
- POST /api/symptom-checker: Process symptom data and return prediction
- GET /api/users/{user_id}/history: Get a user's symptom input and prediction history
The application uses a PostgreSQL database with the following tables:
- users: Stores user information
- symptom_inputs: Stores user symptom data
- predictions: Stores AI model predictions
For more details, see backend/database/schema.sql.