Code Monkey home page Code Monkey logo

weather-search's Introduction

⛈️ Weather Search App

🕹️ Overview

The Weather Search App is a robust Android application 📱 that serves weather information ☁️🌤️🌩️ for a specific location using the OpenWeatherMap API.

💡 Features

  • 🔍 Search for weather information based on city name.
  • 🌡️ View current weather conditions including temperature, humidity, wind speed, etc.
  • 📍 Shows data for the user's current location by default.
  • 🌓 Dark mode support for better usability in low-light environments.
  • 🎨 Material3 (Material You) design for a modern and consistent user experience.
  • 🔀 Support for both portrait and landscape orientations.
  • 🧪 Unit testing.
  • 🛠️ Integration testing.
  • 🖥️ UI Tests.

📸 Screenshots

Screenshot 1 Screenshot 2

Screenshot 3 Screenshot 4

Screenshot 5

🚀 Installation

To smoke up the Weather Search App on your local machine 💻 , follow these steps:

  1. 🔑 Git clone this repository to your local machine using git clone https://github.com/ahmed3elshaer/weather-search.git
  2. 🖥️ Open the project in Android Studio.
  3. 🏗️ Build and run the project on an emulator or physical device.

🛠️ Usage

  1. Upon launching the app, you'll be greeted with a search bar.
  2. 🔐 The app will request the user to grant the location permission.
  3. 🌍 The app will display the current weather conditions for the user's current location.
  4. 📝 Enter the name of the city for which you want to check the weather and press the search button.
  5. 📊 The app will display the current weather conditions for the specified location or the city name in the case of search.

🏗️ Technologies

The Weather Search App hinges on the following technologies:

🏢 Architecture

This project adopts the robust MVVM (Model-View-ViewModel) architecture pattern, which provides a clear separation of concerns. The user interface is separated from the business logic, providing the merits of modular and testable code.

  • DATA: Contains the data sources and repositories for fetching weather data from OpenWeatherMap API and retrieving the user's current location.
  • DOMAIN: Contains the business logic, use cases, and structural models for the application. e.g., the Weather model and the GetWeatherUseCase.
  • UI: Composes the visual interfaces and view models of the application.

Further, the application features the single activity architecture paradigm, adhering to the modern Android development practices.

📂 Project Structure

The project exhibits Google's recommended app architecture. It is divided into specific packages, ensuring clean code and easy navigation. This project doesn't necessitate the complexity of multi-module architecture; the package-based architecture has been deemed more suitable.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.