Skip to content

GregBrimble/workers.sh

Repository files navigation

workers.sh

GitHub Actions Test GitHub Actions Deploy LGTM Alerts LGTM Code Quality Code Climate Maintainability Codecov License GitHub Last Commit Lerna

A dashboard for managing Cloudflare Workers.

Prerequisites

  • Node.js

  • cloudflared

    (On MacOS with Homebrew: brew install cloudflare/cloudflare/cloudflared)

Getting Started

  1. npm i

Scripts

These should all be self-explanatory:

  • npm run lint

    • npm run lint:fix
  • npm run test

    • npm run test:client
    • npm run test:server
  • npm run deploy

To start a local version:

  1. In one terminal window, run npm run start:client.

  2. In another, run npm run start and navigate to http://localhost:8787.

About

  • /packages/client is simply a CRA created with npx create-react-app . --template typescript --use-npm.

  • /packages/server an function which intercepts a request to the client. If it returns a 404, the request is passed through to the client.

  • /packages/worker attempts to fetch from the server first, falling back on the client.

About

A featureful dashboard for managing Cloudflare Workers

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published