A comprehensive fitness tracking application built with Next.js, Tailwind CSS, and Supabase.
-
🏋️♂️ Workout Tracking
- Log exercises, sets, and reps
- Track workout history
- Monitor progress over time
-
🍎 Macro Tracking
- Log meals and track calories
- Monitor protein, carbs, and fat intake
- Daily nutrition summaries
-
⚖️ Weight Tracking
- Log daily weight
- View weight trends
- Track progress towards goals
-
📊 Analytics
- Visualize workout progress
- Track nutrition trends
- Monitor weight changes
-
Frontend:
- Next.js 14
- React 18
- Tailwind CSS
- TypeScript
- Chart.js for analytics
-
Backend:
- Supabase (PostgreSQL)
- Row Level Security (RLS)
- Real-time subscriptions
-
Authentication:
- Supabase Auth
- Email/Password authentication
- Protected routes
-
Clone the repository:
git clone https://github.com/your-username/fittrack.git cd fittrack -
Install dependencies:
npm install
-
Create a
.env.localfile in the root directory with your Supabase credentials:NEXT_PUBLIC_SUPABASE_URL=your_project_url NEXT_PUBLIC_SUPABASE_ANON_KEY=your_project_api_key -
Run the development server:
npm run dev
-
Open http://localhost:3000 in your browser.
The application uses the following database tables:
workouts: Store workout sessionsexercises: Track exercises within workoutsexercise_sets: Record sets for each exercisemeals: Log meal information and macrosweight_entries: Track weight measurements
Contributions are welcome! Please feel free to submit a Pull Request.
This project is licensed under the MIT License - see the LICENSE file for details.