untitled-73
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.
index.ts
https://devthom_studios--2b7b96c63d8b11f09e3276b3cceeab13.web.val.run
An interactive weather map application that displays current weather conditions for various locations around the world.
- Interactive world map with clickable locations
- Real-time weather data from Open-Meteo API
- Temperature, humidity, wind speed, and weather conditions
- Responsive design with TailwindCSS
- No API keys required
├── backend/
│ └── index.ts # Hono API server
├── frontend/
│ ├── index.html # Main HTML template
│ ├── index.tsx # React frontend entry point
│ └── components/
│ ├── App.tsx # Main app component
│ ├── WeatherMap.tsx # Interactive map component
│ └── WeatherCard.tsx # Weather info display
├── shared/
│ └── types.ts # Shared TypeScript types
└── README.md
GET /
- Serves the frontend applicationGET /api/weather?lat={lat}&lon={lon}
- Fetches weather data for coordinates
The application loads with a world map. Click on any location to see current weather conditions including temperature, humidity, wind speed, and weather description.