Public
Like
RSVP
Val Town is a collaborative website to build and scale JavaScript apps.
Deploy APIs, crons, & store data – all from the browser, and deployed in milliseconds.
Viewing readonly version of main branch: v3View latest version
A simple RSVP system built on Val Town that allows guests to submit their responses to an event invitation and view all responses.
- 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
/index.ts- Main backend file with API endpoints and database setup/frontend/index.html- Frontend RSVP form and response viewer
POST /api/rsvp- Submit a new RSVPGET /api/rsvp- Get all RSVP responses
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
)
To customize this RSVP page for your event:
- Update the event details and styling in the HTML
- Modify the form fields as needed for your specific event
- Add authentication if you want to restrict access to the responses
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