Skip to content

Commit

Permalink
Create README.md
Browse files Browse the repository at this point in the history
sergiodxa committed Oct 31, 2024
1 parent b4a2475 commit 15ed06c
Showing 1 changed file with 33 additions and 0 deletions.
33 changes: 33 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
# Edge-first Starter AI Chat

This is an Edge-first AI Chat app similar to ChatGPT but using Cloudflare Development Platform.

## Setup

To setup create a new D1, KV and R2, all named `ai-chat` then in `wrangler.toml` update the id for D1 and KV.

Then run your DB migrations with `bun run db:migrate:locaal ai-chat`.

Finally on GitHub create the secrets

- `CLOUDFLARE_API_TOKEN` with your Cloudflare API token
- `CLOUDFLARE_ACCOUNT_ID` with your Cloudflare account ID
- `CLOUDFLARE_DATABASE_NAME` with the name `ai-chat`

And in `.dev.vars` add:

```txt
APP_ENV="development"
CLOUDFLARE_ACCOUNT_ID=""
CLOUDFLARE_DATABASE_ID=""
CLOUDFLARE_API_TOKEN=""
GRAVATAR_API_TOKEN=""
VERIFIER_API_KEY=""
```

## Author

- [Sergio Xalambrí](https://sergiodxa.com)

0 comments on commit 15ed06c

Please sign in to comment.