🚀 Live Demo: PTAI
PTAI is an AI-powered fitness assistant that helps users with personalized diet plans, exercise routines, and fitness goals. Built using Next.js for both frontend and backend, PTAI integrates AI and fitness data to provide an intuitive user experience. 🏆💪
- Framework: Next.js (Frontend + Backend)
- Database: MongoDB 🛢️
- AI Integration: Google Generative AI 🤖
- Styling: Tailwind CSS 🎨, ShadCN 💅
- State Management & Utilities: React Hook Form 📄, Zod 🛡️, Axios 🌐
- Authentication: JWT 🔑, NextAuth ⚡
- Security: Bcrypt 🔒, AES Encryption 🔑
- Email Service: Nodemailer 📧
- Data Visualization: Chart.js 📊
- Icons: Lucide React 🎭
git clone https://github.com/pratyush2374/PTAI.git
cd PTAInpm installCreate a .env.local file and add the following:
DATABASE_URL=mongodb+srv://your_mongo_url
GOOGLE_CLIENT_ID=your_google_client_id
GOOGLE_CLIENT_SECRET=your_google_client_secret
NEXTAUTH_URL=http://localhost:3000
NEXTAUTH_SECRET=your_nextauth_secret
EMAIL_USER=your_gmail_id
EMAIL_PASS=your_gmail_app_password
NEXT_PUBLIC_AES_SECRET=f8x3b7e212oisda8012nd1c4a5a9e0f1g6h8j3k9l0p2
JWT_SECRET=109asdads0129090asd8has012nads091ned8sa2d0239sj1endas09n
NEXT_PUBLIC_DEFAULT_PASSWORD=default_password_for_google_login
GEMINI_API_KEY=your_gemini_api_key
CLIENT_URL=http://localhost:3000npm run devRuns on: http://localhost:3000 ⚡
npm run build
npm start✅ AI-powered personalized fitness plans 🏃♂️🤖
✅ Google OAuth for fetching fitness data 🔄
✅ Secure authentication with JWT & bcrypt 🔒
✅ Email-based communication via Nodemailer 📩
✅ Interactive charts & analytics using Chart.js 📊
✅ Fully responsive UI with Tailwind & ShadCN 📱
✅ Encrypted user data for security 🔑
We welcome contributions! 🚀 Feel free to fork the repo, create a branch, and submit a pull request. 🙌
📩 Email: pratyushsharma2374@gmail.com
🐙 GitHub: pratyush2374
💼 LinkedIn: pratyush2374
Happy Coding! 🚀💻