How saidovaliakbar/wedding-invitation works
This is a static wedding invitation site with Cloudflare Pages Functions handling RSVP submission and an authenticated admin RSVP view. Guests use the invitation and submit attendance; the function validates and stores responses in D1. Administrators can log in, retrieve RSVP totals and rows, and log out. The README documents the RSVP endpoint and D1 binding; frontend-to-admin API wiring is not shown in the sampled source, so those links are marked unverified.
Main entry points: index.js Request handler · admin.html Admin page · index.html Invitation page · schema.sql RSVP database
Components 11
Invitation site
- Invitation page
dist/index.html - Admin page
dist/admin.html - Static assets
dist/index.html
Pages runtime
- Request handler
src/index.js - RSVP endpoint
src/index.js - Admin auth endpoints
src/index.js - Admin RSVP endpoint
src/index.js - Session validation
src/index.js
RSVP data
- RSVP database
schema.sql
Other components
- Guest
- Administrator
Connections 13
- Guest → Invitation page: visits
README.md - Invitation page → RSVP endpoint: submits RSVP
README.md - Administrator → Admin page: opens
- Admin page → Admin auth endpoints: requests login
- Admin page → Admin RSVP endpoint: requests RSVP list
- Request handler → RSVP endpoint: routes requests
src/index.js - Request handler → Admin auth endpoints: routes requests
src/index.js - Request handler → Admin RSVP endpoint: routes requests
src/index.js - Request handler → Static assets: falls back to
src/index.js - RSVP endpoint → RSVP database: inserts response
src/index.js - Admin auth endpoints → Session validation: creates sessions
src/index.js - Admin RSVP endpoint → Session validation: validates session
src/index.js - Admin RSVP endpoint → RSVP database: reads responses
src/index.js