https://github.com/cloudflare/worker-template
a template to kickstart your Cloudflare worker!
https://github.com/cloudflare/worker-template
Last synced: 9 days ago
JSON representation
a template to kickstart your Cloudflare worker!
- Host: GitHub
- URL: https://github.com/cloudflare/worker-template
- Owner: cloudflare
- License: apache-2.0
- Created: 2019-04-05T21:18:35.000Z (about 6 years ago)
- Default Branch: master
- Last Pushed: 2024-09-25T22:48:34.000Z (7 months ago)
- Last Synced: 2025-03-27T07:09:20.492Z (18 days ago)
- Language: JavaScript
- Size: 35.2 KB
- Stars: 197
- Watchers: 13
- Forks: 111
- Open Issues: 14
-
Metadata Files:
- Readme: README.md
- License: LICENSE_APACHE
- Code of conduct: CODE_OF_CONDUCT.md
Awesome Lists containing this project
- awesome-cloudflare - Hello World JS Boilerplate - Template for kick starting a worker project in JS. (Workers / Recipes)
- awesome-cloudflare - Hello World JS Boilerplate - Template for kick starting a worker project in JS. (Workers / Recipes)
README
# 👷 `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).