the starter kit is setup with full typescript support.
run npm install to install all dependencies
npm install
run npm dev to start the development server
npm run dev
deployment is done via github action, so push to main will deploy the worker. it requires a repository secret called CLOUDFLARE_API_TOKEN with the api token of your cloudflare account.
https://developers.cloudflare.com/workers/
you can connect to a live log stream via the wrangler tail command. this will provide http logs and any console logs from your worker code
CLOUDFLARE_API_TOKEN=YOUR_API_TOKEN npx wrangler tail
create a file called .dev.vars in a .dotenv format
SECRET_KEY=value
secrets are set via the wrangler cli. this will create the secret remotly inside of cloudflare and the secret will be available to your code at runtime
CLOUDFLARE_API_TOKEN=YOUR_API_TOKEN npx wrangler secret put SECRET_NAME