test-gemini
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.
A Val Town project to display current weather and a 3-day forecast for a user-specified city.
- User inputs a city name.
- Displays current temperature, weather condition, and an emoji.
- Displays a 3-day forecast with high/low temperatures and weather conditions.
- Uses Open-Meteo API for weather data.
- Styled with TailwindCSS.
/index.html
: The main HTML file for the frontend. Contains structure, styling (via TailwindCDN), and client-side JavaScript./weather.ts
: A Val Town HTTP Val that acts as the backend. It takes a city name, fetches weather data from Open-Meteo, and returns it to the frontend.
- Open the Val Town URL for
/index.html
. - Enter a city name in the input field.
- Click "Get Weather".
- The dashboard will update with the weather information.
Get started with a template: