misc-fun
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.
index.ts
https://maxm--5af8066446dc11f0825676b3cceeab13.web.val.run
A web application for hosting dinner party invitations with RSVP functionality.
- Public Events Page: Display upcoming dinner parties
- RSVP System: Guests can RSVP with name, email, and dietary restrictions
- Admin Panel: Password-protected event creation and management
- Privacy: RSVPs are private - guests cannot see other attendees
βββ backend/
β βββ database/
β β βββ migrations.ts # Database schema setup
β β βββ queries.ts # Database query functions
β βββ routes/
β β βββ admin.ts # Admin authentication and event management
β β βββ events.ts # Public event listing and RSVP handling
β β βββ static.ts # Static file serving
β βββ index.ts # Main Hono app entry point
βββ frontend/
β βββ components/
β β βββ App.tsx # Main React app
β β βββ EventList.tsx # Public events display
β β βββ RSVPForm.tsx # RSVP form component
β β βββ AdminPanel.tsx # Admin event management
β βββ index.html # Main HTML template
β βββ index.tsx # Frontend entry point
β βββ style.css # Custom styles
βββ shared/
β βββ types.ts # Shared TypeScript types
βββ README.md
Set these in your Val Town environment:
ADMIN_PASSWORD: Password for admin access
- Visit the main page to see upcoming events
- Click "RSVP" on any event to submit your response
- Access
/adminwith the admin password to create/manage events