test
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://bbbb--4fdba3d43f9911f0859876b3cceeab13.web.val.run
A simple web application for collecting and managing email addresses and phone numbers.
- Clean, responsive registration form
- Email and phone number validation
- SQLite database storage
- View all registered contacts
- Duplicate prevention
- RESTful API endpoints
βββ backend/
β βββ database/
β β βββ migrations.ts # Database schema setup
β β βββ queries.ts # Database query functions
β βββ routes/
β β βββ contacts.ts # Contact management routes
β βββ index.ts # Main Hono server
βββ frontend/
β βββ components/
β β βββ App.tsx # Main React component
β β βββ ContactForm.tsx # Registration form
β β βββ ContactList.tsx # Display registered contacts
β βββ index.html # Main HTML template
β βββ index.tsx # Frontend entry point
β βββ style.css # Custom styles
βββ shared/
β βββ types.ts # Shared TypeScript types
βββ README.md
GET /- Serve the main applicationGET /api/contacts- Get all registered contactsPOST /api/contacts- Register a new contactDELETE /api/contacts/:id- Delete a contact
- Visit the application URL
- Fill in the registration form with email and phone number
- Submit to register the contact
- View all registered contacts in the list below