A comprehensive health tracking application that helps users log and monitor various health metrics such as food intake, exercise, sleep, water consumption, body metrics, blood metrics, mindfulness activities, and even menstrual cycles. The platform includes interactive dashboards, visualizations, and email reports to ensure users stay on top of their health.
Follow these steps to install and run the project locally:
-
Clone the Repository:
git clone https://github.com/Sreeju7733/hackathon.git cd hackathon -
Install Dependencies:
- Install PHP and MySQL on your machine.
- Install Composer for PHP package management.
- Run the following command to install required PHP libraries (like PHPMailer):
composer install
-
Set Up the Database:
- Import the
db/schema.sqlfile into your MySQL database to create the necessary tables. - Update
db/conn.phpwith your database credentials.
- Import the
-
Set Up Email Configuration:
- Update
send_mail.phpandsend_report.phpwith your SMTP server settings and credentials.
- Update
-
Run the Project:
- Start a local server (e.g., using XAMPP or PHP’s built-in server):
php -S localhost:8000
- Open your browser and navigate to
http://localhost:8000.
- Start a local server (e.g., using XAMPP or PHP’s built-in server):
- Food: Log food items and their calories using
log_food.php. - Exercise: Track your workouts and calories burned in
log_exercise.php. - Sleep: Record sleep duration and quality in
log_sleep.php. - Water: Log daily water intake in
log_water.php. - Mindfulness: Log mindfulness activities like meditation in
log_mindfulness.php.
- Navigate to the respective
view_*_log.phpfiles to view detailed logs and visualizations for metrics like blood pressure, body metrics, and food consumption.
- Use the
send_report.phpscript to receive a detailed health report via email, including charts and insights.
- The
index.phpfile serves as the main dashboard, summarizing daily and weekly health metrics and trends.
We welcome contributions! Please follow these steps:
- Fork the Repository: Click the "Fork" button on GitHub.
- Create a New Branch:
git checkout -b feature/your-feature-name
- Make Changes: Add your feature or fix a bug.
- Run Tests: Ensure your changes do not break existing functionality.
- Submit a Pull Request: Open a pull request with a clear description of your changes.
- Follow PSR-12 coding standards for PHP.
- Use meaningful commit messages.
- Programming Language: PHP, JavaScript
- Frontend: Bootstrap, Chart.js, JQuery
- Database: MySQL
- Email Service: PHPMailer
- Server: Apache or PHP Built-in Server
- Comprehensive Health Tracking:
- Log and track food, exercise, sleep, water, mindfulness, body metrics, and blood metrics.
- Visualizations:
- Beautiful charts using Chart.js for trends and insights.
- Email Reports:
- Receive daily/weekly health summaries via email.
- User-Friendly Interface:
- Simple and intuitive design powered by Bootstrap.
- Secure Authentication:
- Passwords are hashed for secure storage.
- Notification System:
- Daily notification system.
Copyright 2025 Sreeju S
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
