Health Tracking System
This repository contains the source code for a Health Tracking System that enables users to:
-
Order Test Kits
-
Access Telemedicine Services
-
Use an AI Symptom Checker
The project is divided into two main parts:
Frontend: Built using JSX (React.js)
Backend: Built using Node.js (located in the backend branch)
Features
- Order Test Kits
Users can browse and order medical test kits directly from the platform.
- Telemedicine Services
The system includes a video and chat feature for users to consult with medical professionals remotely.
- AI Symptom Checker
The AI-powered symptom checker allows users to input their symptoms and receive guidance on possible conditions.
Folder Structure
Main Branch (Frontend)
The main branch contains the frontend code written in JSX using React.js.
/src
├── components
│ ├── OrderTestKit.jsx
│ ├── Telemedicine.jsx
│ ├── SymptomChecker.jsx
│ └── Header.jsx
├── assets
│ ├── images/
│ └── styles/
├── App.jsx
└── index.jsx
Backend Branch
The backend branch contains the Node.js server code. It handles API endpoints, authentication, database interactions, and the integration with AI models for the symptom checker.
Installation
Prerequisites
Ensure you have the following installed:
Node.js
npm (Node Package Manager)
MySQL
Frontend Setup
- Clone the repository and navigate to the main branch:
git clone
cd health-tracking-system
- Install dependencies:
npm install
- Run the development server:
npm run dev
The frontend should now be running at http://localhost:3000.
Backend Setup
- Switch to the backend branch:
git checkout backend
- Install backend dependencies:
npm install
- Configure the .env file for database connection, email API, and JWT settings:
DB_HOST=localhost
DB_USER=
DB_PASSWORD=
DB_NAME=health_tracking
EMAIL_HOST=smtp.example.com
EMAIL_PORT=587
EMAIL_USER=
EMAIL_PASSWORD=
JWT_SECRET=
JWT_EXPIRATION=1d
PORT=5000
- Initialize the MySQL database:
Use the provided SQL scripts (if available) to create the necessary tables.
- Start the server:
npm start
The backend API should now be running at http://localhost:5000.
Technologies Used
Frontend
React.js
JSX
CSS (with a focus on responsive design)
Backend
Node.js
Express.js
MySQL
Nodemailer (for Email API)
JWT (for authentication)
OpenAI API (for AI Symptom Checker)
Contribution Guidelines
-
Fork the repository.
-
Create a new branch:
git checkout -b feature-branch-name
-
Commit your changes and push to your branch.
-
Submit a pull request for review.
License
This project is licensed under the MIT License.
Contact
For questions or support, reach out at [email protected]