GYM Diet Plan AI 🧑🍳
Webapp that generates diet plan based on age, weight. Built with OpenAI API, Next.js, and Tailwind CSS.
Prerequisites
Built with
- Next.js — a React framework for building static and server-rendered apps and websites
- Tailwind CSS — a utility-first CSS framework (tldr; it lets you write CSS in shortcodes)
- OpenAI API — an API that lets you use AI to generate text & images
Running locally
- Clone the repo
git clone
- Install dependencies
npm install
- Create an
.env
file in the root directory and add your OpenAI API key, which you can get from here.
// .env
OPENAI_API_KEY=sk-xxxxxxx
- Run the app
npm run dev
- Open http://localhost:3000 with your browser to see the result.