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

omoba6417

omo

Public
Like
omo
Home
Code
4
backend
3
frontend
3
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
README.md

Flight Booking App

A full-stack flight booking application built with React and Hono on Val Town.

Features

  • Search for flights by origin, destination, and date
  • View available flights with pricing
  • Book flights with passenger information
  • View booking confirmations
  • Responsive design with TailwindCSS

Project Structure

├── backend/
│   ├── database/
│   │   ├── migrations.ts    # Database schema setup
│   │   └── queries.ts       # Database query functions
│   ├── routes/
│   │   ├── flights.ts       # Flight search and booking routes
│   │   └── static.ts        # Static file serving
│   └── index.ts             # Main Hono app entry point
├── frontend/
│   ├── components/
│   │   ├── App.tsx          # Main React app component
│   │   ├── FlightSearch.tsx # Flight search form
│   │   ├── FlightResults.tsx# Flight search results
│   │   └── BookingForm.tsx  # Flight booking form
│   ├── index.html           # Main HTML template
│   └── index.tsx            # Frontend React entry point
├── shared/
│   └── types.ts             # Shared TypeScript types
└── README.md

API Endpoints

  • GET / - Serves the main application
  • GET /api/flights/search - Search for flights
  • POST /api/flights/book - Book a flight
  • GET /api/bookings/:id - Get booking details

Database Schema

  • flights - Available flights with routes, times, and pricing
  • bookings - User flight bookings with passenger information

Getting Started

This app runs on Val Town. The backend serves both the API and the frontend files.

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.