RSVP Page

A simple RSVP system built on Val Town that allows guests to submit their responses to an event invitation and view all responses.

Features

  • RSVP Form: Collects guest information including name, email, attendance status, number of guests, dietary restrictions, and optional messages
  • Response Storage: Stores all submissions in a SQLite database
  • Response Viewing: Provides a simple interface to view all submitted RSVPs
  • Responsive Design: Works well on both desktop and mobile devices

Project Structure

  • /index.ts - Main backend file with API endpoints and database setup
  • /frontend/index.html - Frontend RSVP form and response viewer

API Endpoints

  • POST /api/rsvp - Submit a new RSVP
  • GET /api/rsvp - Get all RSVP responses

Database Schema

The RSVP responses are stored in a SQLite table with the following schema:

CREATE TABLE rsvp_responses ( id INTEGER PRIMARY KEY AUTOINCREMENT, name TEXT NOT NULL, email TEXT NOT NULL, attending BOOLEAN NOT NULL, guests INTEGER DEFAULT 0, dietary_restrictions TEXT, message TEXT, created_at TIMESTAMP DEFAULT CURRENT_TIMESTAMP )

Customization

To customize this RSVP page for your event:

  1. Update the event details and styling in the HTML
  2. Modify the form fields as needed for your specific event
  3. Add authentication if you want to restrict access to the responses

Security Considerations

In a production environment, you might want to:

  • Add authentication for viewing responses
  • Implement rate limiting to prevent spam
  • Add email verification
  • Add CSRF protection