Skip to content

Latest commit

 

History

History
43 lines (35 loc) · 601 Bytes

File metadata and controls

43 lines (35 loc) · 601 Bytes

hello-world-cloudflare

Setup (once)

rustup target add wasm32-unknown-unknown
cargo install cargo-generate

Setup new project (optional)

# From template
cargo generate cloudflare/workers-rs

# Or
npx wrangler init

Or from existing source

git clone https://github.com/gist-rs/hello-world-cloudflare
cd hello-world-cloudflare

Run

npx wrangler dev

Deploy

npx wrangler login
npx wrangler deploy

Build and Deploy on Cloudflare

npx wrangler deploy -e production

Try

http://localhost:8787