Skip to content

Latest commit

 

History

History
45 lines (29 loc) · 1.04 KB

readme.md

File metadata and controls

45 lines (29 loc) · 1.04 KB

Cloudflare Summer Challenge

https://challenge.developers.cloudflare.com/

Setup

$ npm install
# or
$ pnpm install
# or
$ yarn install

Development

The application is split into two separate components, (currently) requiring two separate development workflows:

Client

Ideal for HTML/CSS/JS development. Spawns a live-reload development server:

$ npm run html dev

This will watch the /src directory for any file changes, automatically reloading the localhost:8080 server.

Worker

You should already have wranger installed. Start a development server via:

$ wrangler dev

This will watch the /worker directory for any file changes, automatically reloading the localhost:8787 server. Note: Any changes to /src contents will not be reflected until /worker contents change.

Deployment

Wrangler is already configured to build the HTML/client files before building the Worker itself. By default, everything will be built before uploading any assets to Cloudflare:

$ wrangler publish