Sometimes static files don’t cut it, but deploying a server and database can be too much if your app just needs a few simple features. Cloudflare Workers cover that middle ground between a full-featured server and a static client. To make it easier for developers to try Cloudflare Workers, we created The Cloudflare Worker App Kit, a handy set of tools for creating, developing, testing, and deploying a Cloudflare Worker app.
With this kit, you run a single npm command and you’ve got all the pieces you need to start working on a Cloudflare Worker app, including:
- Project structure, including source files, so you can see how everything fits together.
- Development tools all set up — local dev server, TypeScript, webpack, Prettier, ESLint, and Jest.
- Build and deploy scripts. Provide the necessary environment variables and run the deploy command to ship your app to Cloudflare’s 150+ locations around the world.
To get started, run the create command and start building:
npx @postlight/cloudflare-worker-app-kit create <AppName>