This is an example Cloudflare Workers project that uses Miniflare for local development, TypeScript, esbuild for bundling, and Jest for testing, with Miniflare's custom Jest environment.
# Install dependencies
$ npm install
# Start local development server with live reload
$ npm run dev
# Start remote development server using wrangler
$ npm run dev:remote
# Run tests
$ npm test
# Run type checking
$ npm run types:check
# Deploy using wrangler
$ npm run deploy