• Townie
    AI
  • Blog
  • Docs
  • Pricing
  • We’re hiring!
Log inSign up
bbbb

bbbb

test

Public
Like
test
Home
Code
4
backend
3
frontend
4
shared
1
README.md
Branches
1
Pull requests
Remixes
History
Environment variables
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.
Sign up now
Code
/
Code
/
Search
index.ts
https://bbbb--4fdba3d43f9911f0859876b3cceeab13.web.val.run
README.md

Email & Phone Registration App

A simple web application for collecting and managing email addresses and phone numbers.

Features

  • Clean, responsive registration form
  • Email and phone number validation
  • SQLite database storage
  • View all registered contacts
  • Duplicate prevention
  • RESTful API endpoints

Project Structure

├── 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

API Endpoints

  • GET / - Serve the main application
  • GET /api/contacts - Get all registered contacts
  • POST /api/contacts - Register a new contact
  • DELETE /api/contacts/:id - Delete a contact

Usage

  1. Visit the application URL
  2. Fill in the registration form with email and phone number
  3. Submit to register the contact
  4. View all registered contacts in the list below
HTTP
  • index.ts
    bbbb--4f…13.web.val.run
Code
backendfrontendsharedREADME.md
FeaturesVersion controlCode intelligenceCLI
Use cases
TeamsAI agentsSlackGTM
DocsShowcaseTemplatesNewestTrendingAPI examplesNPM packages
PricingNewsletterBlogAboutCareers
We’re hiring!
Brandhi@val.townStatus
X (Twitter)
Discord community
GitHub discussions
YouTube channel
Bluesky
Terms of usePrivacy policyAbuse contact
© 2025 Val Town, Inc.