Skip to content
This repository was archived by the owner on Jan 26, 2026. It is now read-only.
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 13 additions & 11 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,38 +15,40 @@ abilities. With user input, Gemini writes a novella one section at a time.

This sample app can be opened in _Project IDX_, or run in your local dev environment.

## Project IDX
### Project IDX - Environment setup

1. Open this repo in Project IDX:
- [Open in Project IDX](https://idx.google.com/import?url=https://github.com/google-gemini/go-dreaming-of-adventure-sample)
- Wait for the import process to complete

1. Set up your Gemini API key:
- Open the IDX Panel and click "Authenticate" with the Gemini API integration.
- Once authenticated, click to get a key which will be copied to your keyboard.
- Add the key to the env variable section in `.idx/dev.nix`.
- Once authenticated, click to copy the API key to your keyboard.
- Paste this key as the `API_KEY` value in the `env` section in `.idx/dev.nix`.

1. Open a new terminal window:
- Open the command palette (CTRL/CMD-SHIFT-P)
- Begin typing **terminal**
- Select **Terminal: Create New Terminal**
- Run `go run .`

## Local dev environment
1. Follow the steps below to run the sample

### Local dev environment - Environment setup

1. Clone this repository: `git clone https://github.com/google-gemini/go-dreaming-of-adventure-sample`

1. Verify that Go 1.22 or later is installed:
- Verify version with `go version`
- In needed, install Go, see: https://go.dev/doc/install


## Run the sample

1. Get a Gemini API key
1. Set up your Gemini API key:
- Launch Google AI Studio: https://aistudio.google.com/
- Click **Get API Key**
- Set the API Key in the `API_KEY` environment varaible: `export API_KEY=<your_api_key>`

1. Follow the steps below to run the sample

1. Set the API Key in the `API_KEY` environment varaible
- `export API_KEY=<your_api_key>`
## Run the sample

1. Compile and run the program:
- `go run .`
Expand Down