This is a weather search app built using SvelteKit. The user can search for the weather in a given city, and the results are displayed dynamically based on the chosen city.
The app currently supports server-side rendering (SSR) to fetch weather data via the Open-Meteo API, and route-based navigation for different cities (e.g., /seattle/weather
).
We recommend using Visual Studio Code (VS Code) for this project, as it provides excellent support for SvelteKit development via extensions.
Install Visual Studio Code
If you don't have VS Code installed, you can download it here:
https://code.visualstudio.com/
Recommended Extensions for VS Code
This project includes recommended extensions in its workspace settings.
When you open the project in VS Code, you will be prompted to "Install All" recommended extensions.
Click "Install All" to quickly set up your environment.
Alternatively, you can find the recommended extensions by searching @recommended
in the Extensions pane in VS Code.
To run this project locally, follow these steps:
Install dependencies:
npm ci
Start the development server:
npm run dev -- --open
This will open the project in your browser
Exercise Goals
This project has some intentional gaps for you to address. Your task is to complete the following improvements and enhancements:
Bug: Weather Data Not Reactive
Enhancement: Response Streaming
Enhancement: Add Error Handling
Enhancement: Basic Styles
Freestyle (Optional)