Skip to content

A weather forecast site, built using React TypeScript to fetch the weather forecast for the provided address and display it 🌦

Notifications You must be signed in to change notification settings

Myesha-Mahazabeen/Weather-WebApp

Repository files navigation

Weather Forecast

A weather forecast site is built using React TypeScript.

The src directory looks like this:

src
β”œβ”€β”€ client
β”‚   β”œβ”€β”€ App.tsx
β”‚   β”œβ”€β”€ components
β”‚   β”‚   β”œβ”€β”€ AddressBar.tsx
β”‚   β”‚   └── NavBar.tsx
|   |   └── WeatherCard.tsx
β”‚   β”œβ”€β”€ forecast.ts
β”‚   β”œβ”€β”€ geocode.ts
β”‚   β”œβ”€β”€ main.css
β”‚   β”œβ”€β”€ main.tsx
β”‚   β”œβ”€β”€ sample_forecast.json
β”‚   β”œβ”€β”€ types.ts
β”‚   └── vite-env.d.ts
└── server
    β”œβ”€β”€ cache.ts
    └── server.ts

Features

  • Implemented a component to display a single forecast "item"
  • In App.tsx, implementd a function to pass to the onAddressSubmit prop of AddressBar that handles:
    • fetching the weather forecast for the provided address
    • showing an alert box if the address can't be geo-coded
    • displaying the resulting weather forecast

Video Walkthrough

About

A weather forecast site, built using React TypeScript to fetch the weather forecast for the provided address and display it 🌦

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published