This repository contains the Webapp source code of the Demo project for "Infrastructure as Code ... Vegan-style" presentation
This project is built using the following technologies:
-
Frontend:
- HTML, CSS, and JavaScript for the user interface
- Tailwind CSS for styling and responsive design
- Vite as the build tool and development server
-
Backend:
- Cloudflare Pages for hosting and serverless server-side logic
- Cloudflare D1 as the database
-
Security:
- Cloudflare Turnstile for CAPTCHA protection
-
Development Tools:
- Wrangler CLI for local development and deployment
- pnpm as the package manager
This stack allows for a serverless, edge-computing approach, leveraging Cloudflare's infrastructure for high performance and scalability.
-
Pull remote project configuration from Cloudflare
pnpx wrangler pages download config <PROJECT_NAME>
-
Create
votes
table in remote databasepnpx wrangler d1 execute DB --remote --file=database/01_add_table_votes.sql
-
Install dependencies
pnpm install
-
Build frontend UI
pnpm build
-
Create
votes
table in local databasepnpx wrangler d1 execute DB --local --file=database/01_add_table_votes.sql
-
Start local development server
pnpx wrangler pages dev