ddd
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: v10View latest version
A weather application that shows current weather conditions and 3-day forecasts for locations around the world.
- Search for weather by city name
- Display current weather conditions (temperature, humidity, wind speed, etc.)
- Show 3-day weather forecast
- Responsive design for mobile and desktop
- Frontend: React with TailwindCSS
- Backend: Hono API framework on Val Town
- Weather Data: Open-Meteo API (no API key required)
- Storage: SQLite for saving user preferences and search history
├── backend/
│ ├── index.ts # Main API entry point
│ └── weather.ts # Weather data fetching logic
├── frontend/
│ ├── components/ # React components
│ │ ├── App.tsx
│ │ ├── SearchBar.tsx
│ │ ├── CurrentWeather.tsx
│ │ ├── ForecastCard.tsx
│ │ └── WeatherForecast.tsx
│ ├── index.html # Main HTML template
│ └── index.tsx # Frontend JS entry point
└── shared/
└── types.ts # Shared types and interfaces
- Search for a city in the search bar
- View current weather conditions
- Check the 3-day forecast below
- Recent searches are saved for quick access