This project is a Next.js application that uses AI to create personalized strength training programs based on a form filled by the user.
Check out the demo video to see Practical Training in action or try the live demo here.
- User-friendly form for inputting personal fitness data
- AI-powered generation of customized workout plans
- Intelligent program that adjusts based on user's progress, changes, and feedback
To run this project locally, follow these steps:
- Clone the repository
- Install dependencies:
npm install
- Start the development server:
npm run dev
- Open http://localhost:3000 in your browser
app/
: Main application directorydemo/page.tsx
: Main page component for the program creation form
components/
: Reusable React componentsProfileForm.tsx
: Component for user input formTrainingProgram.tsx
: Component to display the generated training program
lib/
: Utility functions and server actionscreateProgram.ts
: Server action to generate a training programstreaming/streamProgram.ts
: Function to stream program generation
- Next.js
- React
- Tailwind CSS
- TypeScript
- OpenAI API
- Vercel AI SDK
- Zod (for form validation)
- React Hook Form
This project is currently on hold due to:
- Lack of mobile interface, which is essential for a fitness application.
- Need for more comprehensive features to make it a fully-fledged app.
I may revisit and expand this project in the future to address these limitations and enhance the overall user experience.
Contributions are welcome! Please feel free to submit a Pull Request.