A modern, mobile-friendly gym tracking application built with React, Supabase, and Tailwind CSS.
- Workout Tracking: Log exercises, sets, reps, and weight.
- Programs: Create and manage workout programs (e.g., Push/Pull/Legs).
- History: View past workouts and track progress over time.
- Body Weight: Log and visualize body weight trends.
- Authentication: Secure login with Google (via Supabase).
- PWA Ready: Designed to look and feel like a native app on mobile.
- Frontend: React (Vite)
- Backend: Supabase (PostgreSQL, Auth, Realtime)
- Styling: Tailwind CSS
- Icons: Lucide React
- Charts: Recharts
-
Clone the repository:
git clone https://github.com/aleemulhaq/gym-tracker.git cd gym-tracker -
Install dependencies:
npm install
-
Environment Variables: Create a
.env.localfile in the root directory and add your Supabase credentials:VITE_SUPABASE_URL=your_supabase_project_url VITE_SUPABASE_ANON_KEY=your_supabase_anon_key
-
Database Setup:
- Go to your Supabase Dashboard > SQL Editor.
- Open the
supabase/schema.sqlfile from this project. - Copy the contents and paste them into the SQL Editor.
- Click Run to create the tables and security policies.
-
Authentication Setup:
- In Supabase, go to Authentication > Providers.
- Enable Google.
- Configure the Client ID and Client Secret (from Google Cloud Console).
- Add your redirect URLs (e.g.,
http://localhost:5173for local dev).
-
Run the app:
npm run dev
This project is optimized for deployment on Vercel.
- Push your code to GitHub.
- Import the project in Vercel.
- Add the
VITE_SUPABASE_URLandVITE_SUPABASE_ANON_KEYenvironment variables in Vercel. - Deploy!
Important: After deployment, update your Supabase Site URL and Redirect URLs to match your Vercel domain.