Skip to content
This repository has been archived by the owner on Apr 20, 2023. It is now read-only.

Conversion of Cloudflare Worker fetch Wrangler template to TypeScript

Notifications You must be signed in to change notification settings

13rac1/cloudflare-ts-worker-template-fetch

 
 

Repository files navigation

fetch

Examples of making fetch requests from within your Worker script including generating JSON post requests then reading in the resulting response body, aggregating multiple requests into one response, and following/catching redirects.

Uses TypeScript types from: udacity/cloudflare-typescript-workers. Example Github Repository Template with Jest Tests: udacity/cloudflare-typescript-worker-template.

index.ts is the content of the Workers script.

Live Demos are hosted on workers-tooling.cf/demos/fetch: Demo JSON | Demo HTML

Wrangler

To generate using wrangler

wrangler generate myApp https://github.com/13rac1/cloudflare-ts-worker-template-fetch

Build

Run npm run build to build with TypeScript

Serverless

To deploy using serverless add a serverless.yml file.

About

Conversion of Cloudflare Worker fetch Wrangler template to TypeScript

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • TypeScript 97.4%
  • JavaScript 2.6%