Skip to content

Commit 23e0ef4

Browse files
committed
add README
1 parent 2b23cb1 commit 23e0ef4

File tree

1 file changed

+33
-1
lines changed

1 file changed

+33
-1
lines changed
Lines changed: 33 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,33 @@
1-
TODO
1+
Genkit quickstart
2+
================================================
3+
4+
This quickstart demonstrates how to initialize a [Genkit flow](https://firebase.google.com/docs/genkit/flows) and serve it with Cloud Functions for Firebase.
5+
6+
[Read more about Cloud Functions for Firebase](https://firebase.google.com/docs/functions/)
7+
8+
9+
Getting Started
10+
---------------
11+
12+
1. Install dependencies with `npm install`
13+
1. Start the functions emulator with `firebase emulators:start --only functions`
14+
1. The emulator will output the function URL. It is usually of the form:
15+
16+
```
17+
https://127.0.0.1:5001/{$PROJECT}/us-central1/tellJoke
18+
```
19+
20+
1. Call the function from a terminal, replacing the `url` argument with your function's URL:
21+
22+
```bash
23+
$ curl -X POST \
24+
--url https://127.0.0.1:5001/{$PROJECT}/us-central1/tellJoke \
25+
--header "Content-Type: application/json" \
26+
--header "Accept: text/event-stream" \
27+
--data '{"data": "Observational comedy"}'
28+
```
29+
30+
License
31+
-------
32+
33+
© Google, 2025. Licensed under an [Apache-2](../../../LICENSE) license.

0 commit comments

Comments
 (0)