Skip to content

Commit

Permalink
Add instructions for running with Gemini on a local machine (#3167)
Browse files Browse the repository at this point in the history
  • Loading branch information
johnpryan authored Mar 3, 2025
1 parent 1187c07 commit 8c497af
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion pkgs/dart_services/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,12 +23,21 @@ https://flutter.dev/get-started.
To run the server, run:

```bash
$ dart bin/server.dart
dart bin/server.dart
```

The server will run from port 8080 and export several JSON APIs, like
`/api/v3/analyze` and `/api/v3/compile`.

To test Gemini API features on a local machine,
get an API key from [Google AI Studio](https://aistudio.google.com)
and set the `PK_GEMINI_API_KEY` environment variable before running:

```
export PK_GEMINI_API_KEY=<YOUR_API_KEY>
dart bin/server.dart
```

### Testing

To run tests:
Expand Down

0 comments on commit 8c497af

Please sign in to comment.