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 miliseconds.
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