Skip to content

Latest commit

 

History

History
48 lines (32 loc) · 1.7 KB

README_EN.md

File metadata and controls

48 lines (32 loc) · 1.7 KB
ES

Cloudflare Worker Template

This is a template to get started with Cloudflare workers written in Rust.

Use Template

Features

  • Only Rust, you don't need to write code in any other language.
  • Ready to use
  • Queue events prepared
  • Fetch events set up
  • Custom panic configured (using the log provided by Cloudflare)
  • Automatic Deploy with GitHub Actions
  • Nix environment for comfortable working

Configuration

Important

You must check the Cargo.toml, wrangler.toml and src/lib.rs files. To remove the comments you need to implement

Rename the project in the Cargo.toml and wrangler.toml files.

Requirements

To build and deploy this project, you will need the following:

Local Tests

Important

To test the worker locally, see the official documentation

Automatic Deployment

This project is configured to deploy automatically using GitHub Actions workflows. For it to work correctly, you must set up the following secrets on GitHub:

  • CLOUDFLARE_ACCOUNT_ID: ID of your Cloudflare account.
  • CLOUDFLARE_API_TOKEN: Cloudflare API token.