DemoWeatherApp is a simple web application that displays the local time, temperature, and sunrise/sunset times for a specified city. It leverages a React frontend and backend integration with a weather API.
-
Weather Data Integration:
Utilises the WeatherAPI to fetch weather and astronomical data:- Current Weather:
Endpoint:http://api.weatherapi.com/v1/current.json
Provides details such as city location, temperature, and local time. - Astronomy Data:
Endpoint:http://api.weatherapi.com/v1/astronomy.json
Fetches sunrise and sunset times.
- Current Weather:
-
Interactive User Interface:
A React-based web page where users can enter a city name to view its weather details.
Ensure the following are installed on your system:
- .NET 8 SDK & Runtime
- Node.js
- Run the Backend
Start the .NET backend by executing:dotnet run
- Run the Frontend
Navigate to the React frontend directory and run the following commands:
npm install npm start
- Dao Lam