workers.sh
workers.sh copied to clipboard
A featureful dashboard for managing Cloudflare Workers
workers.sh
A dashboard for managing Cloudflare Workers.
Prerequisites
-
(On MacOS with Homebrew:
brew install cloudflare/cloudflare/cloudflared)
Getting Started
npm i
Scripts
These should all be self-explanatory:
-
npm run lintnpm run lint:fix
-
npm run testnpm run test:clientnpm run test:server
-
npm run deploy
To start a local version:
-
In one terminal window, run
npm run start:client. -
In another, run
npm run startand navigate to http://localhost:8787.
About
-
/packages/clientis simply a CRA created withnpx create-react-app . --template typescript --use-npm. -
/packages/serveran function which intercepts a request to the client. If it returns a 404, the request is passed through to the client. -
/packages/workerattempts to fetch from the server first, falling back on the client.