https://github.com/betahuhn/cf-worker-starter
☁️ Starter Template for Cloudflare Workers with GitHub Actions CI and Automatic Releases
https://github.com/betahuhn/cf-worker-starter
cloudflare-workers nodejs starter-template template typescript workers wrangler
Last synced: 3 months ago
JSON representation
☁️ Starter Template for Cloudflare Workers with GitHub Actions CI and Automatic Releases
- Host: GitHub
- URL: https://github.com/betahuhn/cf-worker-starter
- Owner: BetaHuhn
- License: mit
- Created: 2021-03-09T12:44:54.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2024-05-09T11:21:26.000Z (over 1 year ago)
- Last Synced: 2025-04-05T13:02:10.952Z (6 months ago)
- Topics: cloudflare-workers, nodejs, starter-template, template, typescript, workers, wrangler
- Language: TypeScript
- Homepage: https://mxis.ch
- Size: 1.06 MB
- Stars: 8
- Watchers: 2
- Forks: 2
- Open Issues: 8
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- Funding: .github/FUNDING.yml
- License: LICENSE
Awesome Lists containing this project
README
# ☁️ Cloudflare Worker Starter[](https://github.com/BetaHuhn/cf-worker-starter/actions?query=workflow%3A%22Node+CI%22) [](https://github.com/BetaHuhn/cf-worker-starter/actions?query=workflow%3A%22Release+CI%22) [](https://github.com/BetaHuhn/cf-worker-starter/blob/master/LICENSE) 
Starter Template for Cloudflare Workers with GitHub Actions CI and Automatic Releases
## 🚀 Features
- Semantic Release with Gitmoji
- Automatic publishing with [wrangler-action](https://github.com/cloudflare/wrangler-action)
- Linting with [Eslint](https://eslint.org/)
- Automatic Dependabot PR merging
- Write code in Typescript
- Comes with Mocha tests
- Based on [Cloudflare's Workers template](https://github.com/cloudflare/worker-typescript-template)## ⚙️ Setup
1. [Create a new repository from this template](https://github.com/betahuhn/cf-worker-starter/generate)
2. Clone your new repository
2. Install dependencies using `npm install`
3. Update package details in `package.json` and `README.md`
1. Find and replace `betahuhn/cf-worker-starter` with `user/repository`
2. Find and replace `@betahuhn/cf-worker-starter` with projects npm name
4. Create a repository secret called `CF_API_TOKEN ` to use the [wrangler-action](https://github.com/cloudflare/wrangler-action)
5. Specify your worker details in the `wrangler.toml` file (more info in [Cloudflare's Docs](https://developers.cloudflare.com/workers/cli-wrangler/configuration))## 💻 Available commands
- run `yarn lint` or `npm run lint` to run eslint.
- run `yarn test` or `npm run test` to run all Mocha tests.
- run `yarn dev` or `npm run dev` to run the Worker locally with [Wrangler](https://developers.cloudflare.com/workers/cli-wrangler/commands#dev).
- run `yarn build` or `npm run build` to produce a production version with webpack.## ❔ About
This project was developed by me ([@betahuhn](https://github.com/BetaHuhn)) in my free time. If you want to support me:
[](https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=394RTSBEEEFEE)
[](https://ko-fi.com/F1F81S2RK)
## 📄 License
Copyright 2021 Maximilian Schiller
This project is licensed under the MIT License - see the [LICENSE](LICENSE) file for details.