Skip to content

sukhadajoshi13/FitBite

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

3 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

F I T B I T E

πŸ’ͺ Personal Fitness & Diet Assistant System πŸ₯—

✨ Nutrition Planning Β  | Β  πŸ›‘οΈ Fitness Tracking Β  | Β  ⚑ Interactive Dashboard


Keywords Typing


πŸ“‹ Table of Contents

# Section
1 ✨ Overview
2 🎯 Key Highlights
3 🏷️ Core Features
4 πŸ‘₯ User Roles
5 🧠 Technology Stack
6 πŸ—οΈ System Architecture
7 πŸ”„ Application Workflow
8 πŸ—„οΈ Database Design
9 πŸ“‚ Project Structure
10 πŸ‹οΈ Workouts & Recipes
11 πŸš€ Installation & Setup
12 πŸ”§ Configuration
13 πŸ” Security
14 πŸ“ˆ Future Scope

✨ Overview

FITBITE is a production-style, full-stack fitness and diet tracking platform built with Core PHP, MySQL, and CSS. It empowers users to achieve a balanced lifestyle by providing targeted nutrition planning, activity monitoring, and an interactive daily dashboard β€” simplifying health management entirely.

The platform handles the complete wellness lifecycle: registration β†’ setting physiological goals β†’ tracking daily activities β†’ exploring curated recipes and structured push/pull/legs workouts β€” all within a seamless web experience.

πŸŽ“ Final-year academic project Β· πŸ’Ό Production-grade portfolio showcase


🎯 Key Highlights

πŸ₯— Personalized Diets Highly customized meal tracks focused on caloric and macro-nutrient management
πŸ‹οΈ Targeted Workouts Dedicated push, pull, and legs workout categorizations
🧾 Recipe Suggestions Dozens of curated, healthy food recommendations
πŸ“ Health Blog Repository of modern health and lifestyle articles
πŸ“Š Daily Dashboard Dynamic progress monitoring and activity logs
πŸ“± Responsive UI Optimized fluid layout across mobile and desktop devices
πŸ” Secure Auth Encrypted user access and strict session-based control

🏷️ Core Features

πŸ‘€ User Features

  • βœ… Secure registration and authentication engine
  • βœ… Login / logout with strict PHP session management
  • βœ… Personalized Tracking Dashboard for metric goals
  • βœ… Granular daily calorie and activity tracking
  • βœ… Explore custom workout configurations (Push, Pull, Legs)
  • βœ… Access specialized diet and nutrition directories
  • βœ… View diverse recipe suggestions tailored for health
  • βœ… Read and discover health blog articles
  • βœ… Edit and manage fitness profile details dynamically

βš™οΈ System Features

  • βœ… Centralized database synchronization
  • βœ… Clean, scalable directory structure
  • βœ… Dynamic, multi-themed responsive user interface
  • βœ… Data sanitization for robust data flow security

πŸ‘₯ User Roles

β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
β”‚                         F I T B I T E                        β”‚
β”œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”¬β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”¬β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€
β”‚     TRACKING    β”‚     NUTRITION     β”‚      COMMUNITY         β”‚
β”œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”Όβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”Όβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€
β”‚  Register/Login β”‚  Explore recipes  β”‚  Read health blog      β”‚
β”‚  Manage Profile β”‚  Meal logging     β”‚  Access guidelines     β”‚
β”‚  Log daily data β”‚  Calorie goals    β”‚  Lifestyle articles    β”‚
β”‚  Push/Pull/Legs β”‚  Macro tracking   β”‚                        β”‚
β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”΄β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”΄β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜

🧠 Technology Stack


HTML5 CSS3 JavaScript PHP MySQL XAMPP


πŸ—οΈ System Architecture

  ╔══════════════════════════════════════╗
  β•‘         Browser (User Client)        β•‘
  β•šβ•β•β•β•β•β•β•β•β•β•β•β•β•β•β•€β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•
                 β”‚  HTTP
  ╔══════════════▼═══════════════════════╗
  β•‘         Frontend Layer               β•‘
  β•‘         HTML Β· CSS Β· JS              β•‘
  β•šβ•β•β•β•β•β•β•β•β•β•β•β•β•β•β•€β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•
                 β”‚  PHP Session Data
  ╔══════════════▼═══════════════════════╗
  β•‘         Backend Layer (Core PHP)     β•‘
  β•‘  β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”  β•‘
  β•‘  β”‚  Auth Module                   β”‚  β•‘
  β•‘  β”‚  login.php / register logic    β”‚  β•‘
  β•‘  β”œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€  β•‘
  β•‘  β”‚  Fitness Tracking Pipeline     β”‚  β•‘
  β•‘  β”‚  data.php / update.php         β”‚  β•‘
  β•‘  β”œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€  β•‘
  β•‘  β”‚  Content & Guides              β”‚  β•‘
  β•‘  β”‚  features.php / recepies.php   β”‚  β•‘
  β•‘  β”‚  workout.php / blog.php        β”‚  β•‘
  β•‘  β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜  β•‘
  β•šβ•β•β•β•β•β•β•β•β•β•β•β•β•β•β•€β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•
                 β”‚  MySQLi Query
  ╔══════════════▼═══════════════════════╗
  β•‘         Database Layer (MySQL)       β•‘
  β•‘  Users Β· Profiles Β· Logs Β· Recipes   β•‘
  β•šβ•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•

πŸ”„ Application Workflow

 [1] Visit β†’ index.php (Landing portal)
      β”‚
 [2] Register/Login β†’ Secure PHP auth sequence
      β”‚
 [3] Dashboard Access β†’ Monitor daily progress
      β”‚
 [4] Navigation Hub
      β”œβ”€β”€ [Health Track] β†’ Log physical activities
      β”œβ”€β”€ [Diet Profile] β†’ Update calorie intake
      └── [Manage Profile] β†’ Update baseline goals
      β”‚
 [5] Content Exploration
      β”œβ”€β”€ Workouts β†’ Select Push/Pull/Leg guides
      └── Recipes  β†’ Browse nutrition suggestions
      β”‚
 [6] Health Blog β†’ Read wellness articles
      β”‚
 [7] Logout β†’ Session safely destroyed

πŸ—„οΈ Database Design

Database name: fitbite Β· Engine: InnoDB Β· Charset: utf8mb4

πŸ“Š Tables at a Glance

Table Description Key Columns
tblusers Registered user accounts id, username, email, password_hash
tblprofiles Granular physiological stats user_id, height, weight, goals, activity_level
tbllogs Daily fitness activity tracking user_id, date, calories, duration

🧩 Core SQL Schema

-- Users Base
CREATE TABLE `tblusers` (
  `id`            INT(11)      NOT NULL AUTO_INCREMENT PRIMARY KEY,
  `username`      VARCHAR(255) NOT NULL,
  `email`         VARCHAR(255) NOT NULL,
  `password_hash` VARCHAR(255) NOT NULL,
  `created_at`    TIMESTAMP    DEFAULT CURRENT_TIMESTAMP
);

-- Profiles
CREATE TABLE `tblprofiles` (
  `id`             INT(11)      NOT NULL AUTO_INCREMENT PRIMARY KEY,
  `user_id`        INT(11)      NOT NULL,
  `height`         FLOAT        DEFAULT NULL,
  `weight`         FLOAT        DEFAULT NULL,
  `goals`          VARCHAR(255) DEFAULT NULL,
  `activity_level` VARCHAR(100) DEFAULT NULL
);

-- Tracking Logs
CREATE TABLE `tbllogs` (
  `id`               INT(11) NOT NULL AUTO_INCREMENT PRIMARY KEY,
  `user_id`          INT(11) NOT NULL,
  `date`             DATE    DEFAULT NULL,
  `calories_tracked` FLOAT   DEFAULT NULL,
  `workout_duration` INT(11) DEFAULT NULL
);

πŸ“‚ Project Structure

FITBITE/
β”‚
β”œβ”€β”€ πŸ“„ README.md
β”œβ”€β”€ πŸ“„ LICENSE
β”‚
β”œβ”€β”€ πŸ“ FitBite Project/                 ← Main application logic
β”‚   β”œβ”€β”€ πŸ“„ index.php                    ← 🏠 Landing page
β”‚   β”œβ”€β”€ πŸ“„ login.php                    ← Auth gateway
β”‚   β”œβ”€β”€ πŸ“„ profile.php                  ← Personal identity & stats
β”‚   β”œβ”€β”€ πŸ“„ features.php                 ← Feature directory
β”‚   β”œβ”€β”€ πŸ“„ workout.php                  ← πŸ‹οΈ Workout console
β”‚   β”‚   β”œβ”€β”€ πŸ“„ push.html
β”‚   β”‚   β”œβ”€β”€ πŸ“„ pull.html
β”‚   β”‚   └── πŸ“„ legs.html
β”‚   β”œβ”€β”€ πŸ“„ recepies.php                 ← πŸ₯— Diet tracking
β”‚   β”œβ”€β”€ πŸ“„ blog.php                     ← Wellness articles
β”‚   β”œβ”€β”€ πŸ“„ data.php / update.php        ← CRUD data synchronization
β”‚   β”œβ”€β”€ πŸ“„ header.php / footer.php      ← Global UI wrappers
β”‚   β”œβ”€β”€ πŸ“ css/                         ← Stylesheets
β”‚   β”œβ”€β”€ πŸ“ rec/                         ← Recipes static data
β”‚   └── πŸ“ img/                         ← Images & vectors
β”‚
└── πŸ“ screenshots/                     ← πŸ“Έ Documentation assets

πŸ‹οΈ Workouts & Recipes

Highly curated data to serve diverse physical goals

Category Description Highlights
πŸ‹οΈ Workouts Granular physical routines Push configurations Β· Pull sequences Β· Core Legs maps
πŸ₯— Recipes Curated healthy meals Detailed caloric breakdowns Β· High protein metrics Β· Vegan options
πŸ“ Articles Lifestyle management Longevity tracking Β· Sleep cycles Β· Hydration guidelines

πŸš€ Installation & Setup

βœ… Prerequisites

  • XAMPP β€” PHP 7.x/8.x, Apache, MySQL
  • Git

Step 1 β€” Clone the Repository

git clone https://github.com/your-username/FITBITE.git

Move to your XAMPP htdocs directory:

macOS:   /Applications/XAMPP/xamppfiles/htdocs/FITBITE
Windows: C:\xampp\htdocs\FITBITE

Step 2 β€” Set Up the Database

  1. Start XAMPP β†’ start Apache and MySQL
  2. Open phpMyAdmin: http://localhost/phpmyadmin
  3. Create a new database:
    fitbite
    
  4. Select fitbite β†’ click Import β†’ upload the .sql file included locally.
  5. Click Go β€” tables will securely deploy βœ…

Step 3 β€” Launch

http://localhost/FITBITE/FitBite%20Project/index.php

πŸ”§ Configuration

Database Bridge

Navigate to data.php (or your central connection component) and ensure parameters match your local loop:

$con = mysqli_connect('localhost', 'root', '', 'fitbite');

Update if your MySQL environment leverages a password.


πŸ” Security Considerations

Concern Implementation
πŸ”‘ Password logic Prevent hardcoding; credentials verified server-side
πŸ”’ Session security session_start() strictly guarded on operational routes
πŸ’‰ SQL Injection Base sanitization checks throughout active forms
🧹 Input validation Safe parameter mapping restricting illegal DB inputs
🎭 Directory shielding Avoid leaking core structural logic configurations publicly

πŸ“ˆ Scalability & Future Scope

  • πŸ€– AI-Powered Suggestions based uniquely on ongoing progression rates
  • πŸ“± Native React Native / Flutter cross-OS wrappers
  • 🌍 API sync with Apple Health / Google Fit ecosystems
  • πŸ’¬ Real-Time LLM Chatbot Integration mapping targeted user questions
  • πŸ“Š Complex dynamic visualization engines via JS arrays

❀️ Contributor


Sukhada Joshi
Sukhada Joshi
Developer

Built with focus on clean architecture, relational database design, and complete system workflows β€” demonstrating production grade thinking in an academic context.


πŸ’ͺ A Note from the Gym

"Every great journey starts with a single step. FITBITE was built with the belief that technology should make health tracking accessible, transparent, and joyful especially for those who are just beginning their wellness digital journey. So stay active, the road ahead is full of possibilities." 🌱✨


Built with β˜• & ❀️

Β© FITBITE 2025 Β· All Rights Reserved Β· Academic & Portfolio Project

About

πŸ’ͺ FitBite is a web-based Fitness & Diet Assistant that enables users to track health activities, manage personalized diet plans, and maintain a healthy lifestyle through an interactive, responsive, and user-friendly interface. πŸ₯—πŸ“Š

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors