Skip to content

anshika31gupta/Weather-App-jetpack-Compose-

Repository files navigation

🌤️ Weather Forecast App

A modern Weather App built with Jetpack Compose, using real-time data from a public weather API. The app allows users to search for a city and get current weather conditions in a clean and responsive UI.


📱 Features

  • 🔍 Search weather by city name
  • 🌡️ View temperature, humidity, wind speed, UV index, and precipitation
  • 🗺️ See location and local time/date
  • 🖼️ Dynamic weather icons with condition text
  • ⚙️ Built with MVVM architecture and LiveData

🛠️ Tech Stack

  • Jetpack Compose – UI toolkit
  • ViewModel & LiveData – State management
  • Retrofit – Network requests
  • Coil – Image loading (weather icons)
  • Kotlin Coroutines – Asynchronous operations

📦 API Used

  • WeatherAPI.com
    • Requires a free API key to fetch data.
    • Modify your key in Constant.kt:
      const val API_KEY = "1260db2a1b7c44cda2342739252804"

🧱 Architecture

  • MVVM (Model-View-ViewModel)
  • Clean separation of concerns
  • Sealed class for API response handling:
    • Success, Error, Loading

🚀 Getting Started

  1. Clone the repository:
    git clone https://github.com/your-username/weather-compose-app.git

About

it display the weather condition of the entered location

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages