A template for kick starting a Cloudflare worker project.
index.js
is the content of the Workers script.
To generate using wrangler
wrangler generate projectname https://github.com/cloudflare/worker-template
Further documentation for Wrangler can be found here.