Full Stack AI Recipe Generator App with PERN Stack
Build a full-stack AI-powered Recipe Generator using PostgreSQL, Express, React, and Node.js. Uses Google Gemini 2.5 Flash to generate recipes from your pantry ingredients with dietary and cuisine filters. Features pantry management with expiry alerts and low-stock badges, a weekly meal planner, a shopping list with one-click pantry add, a saved recipe collection, and user preference settings — a complete food planning SaaS built on a normalised PostgreSQL schema hosted on Neon.
What You'll Build
What You'll Learn
Video Chapters
Tech Stack
Frequently Asked Questions
What is the PERN stack and how is it different from MERN?
PERN stands for PostgreSQL, Express, React, and Node.js. The only difference from MERN is the database — PostgreSQL is a relational SQL database with strict schemas and foreign key relationships, whereas MongoDB is a flexible document database. This project is a great introduction to SQL-based full-stack development for developers already familiar with MERN.
What is Neon and do I need to pay for it?
Neon is a serverless PostgreSQL hosting platform with a generous free tier — no credit card required. The tutorial covers the full Neon setup and connection from scratch at 22:40, making it straightforward to get a live PostgreSQL database running in minutes.
How does the AI recipe generation work with pantry items?
Your current pantry ingredients are sent to the Express backend along with your chosen dietary and cuisine filters. The backend constructs a structured prompt and calls Google Gemini 2.5 Flash, which returns a full recipe with ingredients, step-by-step instructions, nutrition info, and cooking tips — all tailored to what you already have at home.
How does the shopping list to pantry workflow work?
Items on your shopping list have a one-click "Add to Pantry" button. Clicking it sends a request to the pantry API that creates a new pantry entry for that ingredient — no manual re-entry needed. You can also check off items as you shop to track what you have picked up.
What prior knowledge do I need?
Familiarity with React and Express is recommended. Prior MERN experience translates directly — the main new concept is PostgreSQL and Neon instead of MongoDB. SQL basics (SELECT, INSERT, JOIN) will help but are not strictly required as the models are built from scratch in the tutorial.
What is included in the source code?
You get the full React frontend, Express backend, PostgreSQL schema files, all AI utility functions, a .env.example with all required keys (including the Neon connection string), and a README with local setup and deployment instructions.
