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:
- We create the D1 database with a Worker binding
- We create the tables with indexes
- We create the Turnstile widget tied to the domain and save the
SITEKEYand theSECRET - Inbox password generated and saved in
senha-mensagens-formulario-contato.txt - 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