This is the code for Build gen AI features powered by your data with Firebase Genkit codelab.
First, update src/lib/genkit/genkit.config.js with your own Firebase project id and login using gcloud auth application-default login.
See Genkit documentation for more information.
Then install the dependencies:
npm installThen run Genkit UI standalone sandbox:
npm run start:genkitAlternatively, run Genkit UI alongside the Next.js development server:
npm run startOpen http://localhost:4000 with your browser to lauch Genkit UI.
Open http://localhost:3000 with your browser to see the Next.js app.
You can start editing the app by modifying genkit-functions/src/lib/itineraryFlow.ts, src/app/gemini/page.tsx. The page auto-updates as you edit the file.