An Angular application for generating RPG characters and interactive chatbot experiences using Google's Gemini API.
This sample application demonstrates how to implement streaming AI responses in an Angular application using Genkit and Google's Gemini API. It features two main components:
- An RPG character generator that creates and streams character profiles
- An interactive chatbot application for AI conversations
- Node.js v20+ and npm installed
- A Google Developer Gemini API key
- Clone the repository and install dependencies:
npm i
npm run setup- Get a Google Gemini API key:
- Visit Google AI Studio to create your API key
- Set the environment variable:
export GEMINI_API_KEY=your_api_key_hereStart the development server:
npm run genkit:devThen access the application at http://localhost:4200/
The application is built with:
- Angular for the frontend framework
- Genkit for AI integration
- Gemini 2.5 Flash for the AI model