Webapp that generates diet plan based on age, weight. Built with OpenAI API, Next.js, and Tailwind CSS.
- Node.js installed on your machine
- OpenAI account & API key
- 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
- 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.