Git Product home page Git Product logo

cfworker-newsletter's Introduction

EN

Newsletter en Cloudflare Workers

Este es un template para empezar con workers de Cloudflare escritos en Rust.

Usa el Template

Features

  • Solo Rust, no necesitas escribir codigo en ningun otro lenguaje
  • Listo para usarse
  • Eventos de Queue preparados
  • Eventos de fetch preparados
  • Custom panic configurado (usando el log que ofrece Cloudflare)
  • Deploy automático con GitHub Actions
  • Entorno Nix para trabajar comodo

Configuración

Important

Debes revisar los archivos de Cargo.toml, wrangler.toml y src/lib.rs Para quitar los comentarios que necesites implementar

Renombra el proyecto en los archivos de Cargo.toml y wrangler.toml

Requisitos

Para construir y desplegar este proyecto, necesitarás lo siguiente:

Entorno Local

Important

Para probar el worker localmente, revisa la documentacion oficial

Necesitas levantar la migracion local, para ello corre el siguiente comando

# Crea la base de datos
npx wrangler d1 create mail-subscriptions &&
# aplica la migracion
npx wrangler d1 apply mail-subscriptions

O si tienes instalado cargo-make, simplemente ejecuta

cargo make init

Ahora a desarrollar

cargo make dev

Despliegue Automático

Este proyecto está configurado para desplegar automáticamente utilizando los flujos de trabajo de GitHub Actions. Para que funcione correctamente, debes configurar los siguientes secretos en GitHub:

  • CLOUDFLARE_ACCOUNT_ID: ID de tu cuenta de Cloudflare.
  • CLOUDFLARE_API_TOKEN: Token de API de Cloudflare.

cfworker-newsletter's People

Contributors

sergioribera avatar

Stargazers

 avatar

Watchers

Sergio Alberto Meneses avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.