town
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.
Viewing readonly version of main branch: v5View latest version
A web application that allows people to post and view bus information including routes, schedules, and details.
- Post new bus information (route, schedule, operator, etc.)
- View all posted buses in a clean interface
- Real-time updates when new buses are posted
- Responsive design for mobile and desktop
├── backend/
│ ├── database/
│ │ ├── migrations.ts # Database schema setup
│ │ └── queries.ts # Database query functions
│ ├── routes/
│ │ └── buses.ts # Bus-related API endpoints
│ └── index.ts # Main Hono server entry point
├── frontend/
│ ├── components/
│ │ ├── App.tsx # Main React application
│ │ ├── BusForm.tsx # Form for posting new buses
│ │ └── BusList.tsx # List component for displaying buses
│ ├── index.html # Main HTML template
│ └── index.tsx # Frontend React entry point
└── shared/
└── types.ts # Shared TypeScript types
GET /api/buses- Get all posted busesPOST /api/buses- Post a new busDELETE /api/buses/:id- Delete a bus post
The application is ready to use once deployed. Visit the main URL to start posting and viewing buses.