A modern recipe management application built with Next.js, featuring Drizzle ORM and PostgreSQL database integration.
- Create, view, edit, and delete recipes
- Add cooking logs to track when you've made a recipe and how it turned out
- Organize recipes with tags
- Dashboard with cooking statistics
- AI-powered recipe image generation
- Node.js 18 or later
- npm or yarn
- PostgreSQL database (local or hosted)
- OpenAI API key (for image generation feature)
- Clone the repository
- Copy
.env.exampleto.env.localand update the variables:DATABASE_URL="your-database-connection-string" OPENAI_API_KEY="your-openai-api-key" - Install dependencies:
npm install - Run database migrations:
npm run db:migrate - (Optional) Seed the database with sample data:
npm run db:seed - Start the development server:
npm run dev
This app integrates with OpenAI's DALL-E model to generate beautiful images for your recipes:
- When creating or editing a recipe, fill in the recipe name and description
- Click on the "Generate with AI" tab in the image section
- The app will suggest a prompt based on your recipe details
- Click "Generate Image" to create a custom image
- The generated image will be automatically added to your recipe
Note: You need a valid OpenAI API key in your .env.local file to use this feature. If you don't have one, you can still use external image URLs.
- Next.js - React framework
- Drizzle ORM - TypeScript ORM
- PostgreSQL - Database
- Vercel AI SDK - AI integration
- OpenAI API - Image generation
- shadcn/ui - UI components
- Tailwind CSS - Styling
MIT