Skip to content

Files

Latest commit

Oct 4, 2024
45ed724 · Oct 4, 2024

History

History

cloudflare-workers

Cloudflare Workers Example

This example uses Wrangler to create a javascript worker.

How to use

  1. Clone and install the example
git clone https://github.com/upstash/upstash-redis.git
cd upstash-redis/examples/cloudflare-workers
npm install
  1. Create a free Database on upstash.com
  2. Copy the UPSTASH_REDIS_REST_URL and UPSTASH_REDIS_REST_TOKEN to wrangler.toml
  3. Start the development server
npm run start
  1. Open your browser at localhost:8787