Public
Like
untitled-8829
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://M_mb_a--d07dcce03fb911f0ab0b76b3cceeab13.web.val.run
A comprehensive platform for discovering local events and connecting with other attendees through real-time chat.
- Event Discovery: Browse events happening around you
- Event Management: Organizers can create and manage events
- Real-time Chat: Chat with other attendees planning to attend the same event
- Location-based: Find events near your location
- Age Restrictions: Events can specify age limits
- Time-based Chat: Chat rooms automatically close when events end
βββ backend/
β βββ database/
β β βββ migrations.ts # Database schema setup
β β βββ queries.ts # Database query functions
β βββ routes/
β β βββ events.ts # Event CRUD operations
β β βββ chat.ts # Chat functionality
β β βββ static.ts # Static file serving
β βββ index.ts # Main Hono server
βββ frontend/
β βββ components/
β β βββ App.tsx # Main application component
β β βββ EventList.tsx # Event discovery interface
β β βββ EventForm.tsx # Event creation form
β β βββ ChatRoom.tsx # Chat interface
β β βββ LocationPicker.tsx # Location selection
β βββ index.html # Main HTML template
β βββ index.tsx # Frontend entry point
β βββ style.css # Custom styles
βββ shared/
βββ types.ts # Shared TypeScript types
- Backend: Hono (TypeScript API framework)
- Frontend: React with TypeScript
- Database: SQLite
- Styling: TailwindCSS
- Real-time: Server-Sent Events (SSE)
- The app will automatically set up the database on first run
- Visit the main page to browse events or create new ones
- Join event chats to connect with other attendees
- Event organizers can manage their events through the interface