FitPlan is a website where you provide your workout requirements and goals, and it uses a Large Language Model (LLM) to generate a customized workout plan, which is then sent to you via email. The project uses Stripe for payments, Postmark for emails, a PostgreSQL database, and is hosted on Vercel.
- Generate personalized workout plans using LLM.
- Receive workout plans via email.
- Secure payment processing with Stripe.
To run this project, you will need to add the following environment variables to your .env file:
SECRET_STRIPE_KEY
SECRET_STRIPE_WEBHOOK_KEY
SECRET_STRIPE_WORKOUT_PLAN_PRICE_ID
DATABASE_PRISMA_URL
DATABASE_URL_NON_POOLING
DATABASE_URL
DATABASE_USER
DATABASE_PASSWORD
DATABASE_HOST
DATABASE_DATABASE
PUBLIC_ENVIRONMENT
SECRET_GROQ_MODEL
SECRET_GROQ_KEY
SECRET_POSTMARK_KEY
- Node.js
- npm
- PostgreSQL
- Clone the repository
git clone https://github.com/yourusername/fitplan.git
- Navigate to the project directory
cd fitplan
- Install dependencies
npm install
- Set up a PostgreSQL database and migrate the schemas
npm run prisma:migrate
- Forward Stripe webhooks
npm run stripe:webhooks
- Start the development server
npm run dev
This project is licensed under the MIT License - see the LICENSE file for details.