akafrxMeu Site

How it works

Get started

Send this repo to your AI

read this repository and let's build my website https://github.com/DanielSunami/template-website-worker-cf

Cloudflare stack

Worker

  • HTML pages
  • Assets
  • Endpoints POST /api/contato POST /api/caixa/sessao

D1

  • SQLite database
  • Your form data
    • Name
    • Message

Turnstile

Captcha to protect you from bots and from people who submit the form thousands of times.

Automated setup

To run the script you need an API token. We made guides to help: how to generate and how to revoke.

Breakdown:

  1. We create the D1 database with a Worker binding
  2. We create the tables with indexes
  3. We create the Turnstile widget tied to the domain and save the SITEKEY and the SECRET
  4. Inbox password generated and saved in senha-mensagens-formulario-contato.txt
  5. That same password is stored in the Worker Secrets as INBOX_PASSWORD

You can change the inbox password anytime: open the Cloudflare dashboard and edit the Worker secret INBOX_PASSWORD