Skip to content

Commit af1645f

Browse files
committed
docs: updates readme for kv/redis
1 parent 59f99e2 commit af1645f

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

apps/postgres-new/README.md

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,16 @@ From this directory (`./apps/postgres-new`):
4646
```shell
4747
echo 'OPENAI_API_KEY="<openai-api-key>"' >> .env.local
4848
```
49-
5. Start Next.js development server:
49+
5. Start local Redis containers (used for rate limiting). Serves an API on port 8080:
50+
```shell
51+
docker compose up -d
52+
```
53+
6. Store local KV (Redis) vars. Use these exact values:
54+
```shell
55+
echo 'KV_REST_API_URL="http://localhost:8080"' >> .env.local
56+
echo 'KV_REST_API_TOKEN="local_token"' >> .env.local
57+
```
58+
7. Start Next.js development server:
5059
```shell
5160
npm run dev
5261
```

0 commit comments

Comments
 (0)