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 install
Then run Genkit UI standalone sandbox:
npm run start:genkit
Alternatively, run Genkit UI alongside the Next.js development server:
npm run start
Open 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.