Weather Forecast web-app built on Angular/Typescript
This is an Weather webapp build using Angular v19. It displays current weather and a 5-day high/low forecast for any city. The app fetches weather data from the OpenWeatherMap API and supports both metric and imperial units.
- Current Weather: Displays the current temperature, weather condition, humidity, and wind speed.
- 5-Day Forecast: Shows the daily minimum and maximum temperatures for the next five days.
- City Search: Allows users to search for a city to view its weather and forecast.
- Unit Selection: Users can switch between metric (Celsius) and imperial (Fahrenheit) units.
- Dynamic City Handling: Prevents ambiguous results by allowing city and country/state input or selection.
Tip
To get optimal serach result, be specific with city and country. Search Country using Alpha-2 Codes.
Searching only 'Rome' would result in Rome, Georgia, US rather than Rome, Italy.
To search for Rome, Italy --- search: 'Rome, IT'.
Searching only 'Arlington' would result in Arlington, Texas, rather than Arlington, Virginia.
To search for Arlington, Virginia --- search: 'Arlington, VA, US'.
(Mobile UI not yet implemented)
- Weather Webapp with API Key hidden in angular environment.
- Serverless Weather Webapp with API hidden and fetched though AWS Lambda.
-
Clone repository:
terminalgit clone https://github.com/Systemized/Weather-Panel.git cd weather-app -
Register at OpenWeatherMap for API key. Then, add API key to environment files, and run dev server
environment.ts&environment.prod.tsexport const environment = { production: true, openWeatherApiKey: '<API_KEY>' };
terminalng serve
