https://github.com/cloudflare/templates
A collection of starter templates and examples for Cloudflare Workers and Pages
https://github.com/cloudflare/templates
Last synced: 19 days ago
JSON representation
A collection of starter templates and examples for Cloudflare Workers and Pages
- Host: GitHub
- URL: https://github.com/cloudflare/templates
- Owner: cloudflare
- License: mit
- Archived: true
- Created: 2017-12-19T16:38:32.000Z (over 7 years ago)
- Default Branch: main
- Last Pushed: 2023-02-17T17:05:40.000Z (about 2 years ago)
- Last Synced: 2024-10-30T06:33:35.740Z (6 months ago)
- Language: JavaScript
- Homepage: https://cloudflareworkers.com
- Size: 253 MB
- Stars: 1,002
- Watchers: 52
- Forks: 636
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
- Code of conduct: CODE_OF_CONDUCT.md
Awesome Lists containing this project
- awesome-cloudflare - Examples Collection - Collection of recipes. (Workers / Recipes)
README
# Templates for Cloudflare Workers
Cloudflare Workers let you deploy serverless code instantly across the globe for exceptional performance, reliability, and scale. This repository contains a collection of starter templates for building full-stack applications on Workers. **You are encouraged to use, modify, and extend this code!**
## Getting Started
There are two ways to start building with a template in this repository: the [Cloudflare dashboard](https://dash.cloudflare.com/) and [C3](https://developers.cloudflare.com/pages/get-started/c3/) (the `create-cloudflare` CLI).
### Starting from the Dashboard
After logging in or signing up through the [Cloudflare dashboard](https://dash.cloudflare.com/), open the [Workers templates page](https://dash.cloudflare.com/?to=/:account/workers-and-pages/templates) and select a template to get started with. From here, you can create a repository and deploy your first Worker without needing a local development environment.
### Starting via CLI
To get started locally, run one of the following commands:
```bash
npm create cloudflare@latest
# or
pnpm create cloudflare@latest
# or
yarn create cloudflare@latest
```For more information on getting started with our CLI, check out the [getting started guide](https://developers.cloudflare.com/workers/get-started/guide/).
### Additional Resources
Questions about Workers? Join the [official Cloudflare Discord](https://workers.community/) or check out the [Workers docs](https://developers.cloudflare.com/workers/)!
## Contributing
We welcome template contributions! If there's a Workers template you think would be valuable, please read our [contributing guide](./CONTRIBUTING.md) and open an issue or pull request.