This is a comprehensive weather forecast application built with React and TypeScript. It fetches the forecast data from the National Weather Service API and provides daily and hourly forecasts. The application includes functionality for selecting a specific date and viewing the weather forecast for that date.
The main components of this application include:
AddressInput
: Takes the user's input (address) and fetches the coordinates.MapComponent
: Uses the coordinates to display the location on Google Maps.DailyForecast
andHourlyForecast
: Uses the coordinates to fetch and display weather data from the National Weather Service API.ForecastProvider
: A context provider that holds state and fetches data.
- React
- TypeScript
- dayjs: A lightweight JavaScript date library.
- Tailwind CSS: A utility-first CSS framework for rapid UI development.
- react-query: A data-fetching and state management library for React.
- axios: A Promise-based HTTP client for JavaScript.
- Clone the repository from GitHub.
- Navigate to the project directory.
- Install the project dependencies with
npm install
. - Run the project with
npm start
.
- Live application: WIP
- National Weather Service API documentation: Click Here
- US Census Geocoding services: Click Here