Add demo worker

This commit is contained in:
Sam Carlton 2022-02-03 19:33:31 -06:00
parent 63589a079a
commit a4186bafdf
10 changed files with 348 additions and 0 deletions

View file

@ -0,0 +1,15 @@
# 👷 `worker-template` Hello World
A template for kick starting a Cloudflare worker project.
[`index.js`](https://github.com/cloudflare/worker-template/blob/master/index.js) is the content of the Workers script.
#### Wrangler
To generate using [wrangler](https://github.com/cloudflare/wrangler)
```
wrangler generate projectname https://github.com/cloudflare/worker-template
```
Further documentation for Wrangler can be found [here](https://developers.cloudflare.com/workers/tooling/wrangler).