Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/fourjuaneight/worker
:building_construction: Cloudflare Worker template written in TypeScript, compiled to JavaScript, and deployed via GitHub Actions.
https://github.com/fourjuaneight/worker
Last synced: about 1 month ago
JSON representation
:building_construction: Cloudflare Worker template written in TypeScript, compiled to JavaScript, and deployed via GitHub Actions.
- Host: GitHub
- URL: https://github.com/fourjuaneight/worker
- Owner: fourjuaneight
- License: mit
- Created: 2022-05-23T18:48:03.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2024-04-11T17:49:26.000Z (9 months ago)
- Last Synced: 2024-04-17T19:27:54.163Z (9 months ago)
- Language: TypeScript
- Size: 286 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
# Worker
[Cloudflare Worker](https://developers.cloudflare.com/workers/) template written in TypeScript and compiled to JavaScrip via [esbuild](https://esbuild.github.io). The template is broken into two files:
- `index.ts` - hosts the fetch event listener.
- `handler.ts` - hosts the request handler and error handling.The worker made for handling POST request with a JSON payload. But can easily be modified to fit any need.
A GitHub Action builds and publishes the worker on every push. Makre sure to include a `CF_API_TOKEN` secret with your Cloudflare API token for the Action to publish your worker.