This is a Next.js app with Google's Gemini AI Chatbot
- Install dependencies:
npm install
# or
yarn install
# or
pnpm install
# or
bun install
-
Set environment variables:
GEMINI_API_KEY
: Get your API key from Google AI Studio.GEMINI_BASE_URL
: Get an AI Gateway endpoint from Cloudflare AI Gateway.
-
Run the development server:
npm run dev
# or
yarn dev
# or
pnpm dev
# or
bun dev
-
Open http://localhost:3000 with your browser to see the result.
-
You can start editing the page by modifying
app/page.js
. The page auto-updates as you edit the file.