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