Skip to content

A smart fitness planner app to track, manage, and visualize your workouts with personalized progress insights.

Notifications You must be signed in to change notification settings

SameerSenapati17/smart-fitness-planner

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 

Repository files navigation

🏋️ AI Workout Generator

An intelligent full-stack application that generates personalized workout plans using Google's Gemini AI, based on user details like age, gender, weight, height, fitness level, and goal.

🚀 Features

  • ✅ Generate customized workout plans using AI
  • ⚛️ React-based frontend with clean form inputs
  • 🌐 Express.js backend with Gemini API integration
  • 🔐 Secure API key management using environment variables
  • 🔁 Handles loading states and error messages gracefully

📷 Preview

image
image

📁 Project Structure


ai-workout-generator/
│
├── backend/
│   ├── routes/
│   │   └── chatbot.js          # API call to Google Generative AI
│   ├── app.js                  # Express server setup
│   └── .env                    # Environment variables (API Key)
│
├── frontend/
│   ├── src/
│   │   ├── App.js
│   │   ├── Form.jsx
│   │   └── WorkoutPlan.jsx
│   └── index.html
│
└── README.md


🔧 Tech Stack

Layer Technology
Frontend React.js
Backend Node.js, Express.js
AI Model Google Gemini API
Styling Plain CSS / Tailwind
Hosting Local / Vercel / Render

🛠️ Getting Started

⚙️ Prerequisites


🖥️ Backend Setup

  1. Navigate to the backend/ directory:

cd backend

  1. Install dependencies:

npm install

  1. Create a .env file in the backend folder with your Gemini API key:

GOOGLE\_API\_KEY=your\_google\_api\_key\_here

  1. Run the server:

node app.js

The backend will run on:
📡 http://localhost:3000/api/chatbot


🌐 Frontend Setup

  1. Navigate to the frontend/ directory:

cd frontend

  1. Install dependencies:

npm install

  1. Start the frontend (Vite or CRA):

npm run dev

The frontend will run on:
🎨 http://localhost:5173


🧪 Example Usage

Fill out the form with details like:

  • Name: Sameer Senapati
  • Age: 25
  • Gender: Male
  • Fitness Level: Beginner
  • Goal: Weight Loss

Click "Get Workout Plan" and wait for the AI to generate a complete plan tailored to your input.


🔐 Environment Variables

Variable Name Description
GOOGLE_API_KEY Your Google Gemini (Generative AI) key

🌍 Deployment Tips

You can deploy the project using:

Ensure to add your environment variables (API key) securely in deployment settings.

👨‍💻 Contributing

Pull requests and forks are welcome!


git clone [https://github.com/yourusername/ai-workout-generator.git](https://github.com/yourusername/ai-workout-generator.git)

Make your changes, then submit a PR. 🙌


📜 License

MIT License

Copyright (c) 2025 Sameer

🙏 Acknowledgements


Created with ❤️ by Sameer Senapati

About

A smart fitness planner app to track, manage, and visualize your workouts with personalized progress insights.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published