Skip to content

daolavi/DemoWeatherApp

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 

Repository files navigation

DemoWeatherApp

Introduction

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.

Features

  • 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.
  • Interactive User Interface:
    A React-based web page where users can enter a city name to view its weather details.

Prerequisites

Ensure the following are installed on your system:

  • .NET 8 SDK & Runtime
  • Node.js

Quick Start

  1. Run the Backend
    Start the .NET backend by executing:
    dotnet run
  2. Run the Frontend Navigate to the React frontend directory and run the following commands:
    npm install
    npm start

Author

  • Dao Lam

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published