It_pours
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://Jojo_Senpai07--79414ef83fa911f088df76b3cceeab13.web.val.run
A modern, responsive weather forecast website that provides current conditions and 7-day forecasts for any location worldwide.
- π Global weather data using Open-Meteo API (no API key required)
- π± Responsive design that works on desktop and mobile
- π¨ Beautiful, modern UI with weather icons and gradients
- π Detailed weather information including:
- Current temperature and conditions
- 7-day forecast
- Humidity, wind speed, and pressure
- Hourly temperature chart
- π Location search with autocomplete
- π Geolocation support
- Backend: Hono.js API framework
- Frontend: React with TypeScript
- Styling: TailwindCSS
- Weather Data: Open-Meteo API
- Geocoding: Open-Meteo Geocoding API
βββ backend/
β βββ index.ts # Main API server
β βββ routes/
β βββ weather.ts # Weather API endpoints
βββ frontend/
β βββ index.html # Main HTML template
β βββ index.tsx # React app entry point
β βββ components/
β βββ App.tsx # Main app component
β βββ WeatherCard.tsx # Current weather display
β βββ Forecast.tsx # 7-day forecast
β βββ SearchBar.tsx # Location search
βββ shared/
βββ types.ts # Shared TypeScript types
- Visit the website
- Search for any city or location
- View current weather and 7-day forecast
- Click on forecast days for detailed information
GET /api/weather?lat={lat}&lon={lon}
- Get weather data for coordinatesGET /api/geocode?q={query}
- Search for locations