FeaturesTemplatesShowcaseTownie
AI
BlogDocsPricing
Log inSign up
omoba6417
omoba6417omo
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 miliseconds.
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
Go to top
X (Twitter)
Discord community
GitHub discussions
YouTube channel
Bluesky
Product
FeaturesPricing
Developers
DocsStatusAPI ExamplesNPM Package Examples
Explore
ShowcaseTemplatesNewest ValsTrending ValsNewsletter
Company
AboutBlogCareersBrandhi@val.town
Terms of usePrivacy policyAbuse contact
© 2025 Val Town, Inc.