Code Monkey home page Code Monkey logo

weatherapp's Introduction

Weather application

The project demonstrates latest android technologies.

Architecture

The architecture of the app is based on the concept of Clean Architecture as introducted from Robert C. Martin.(Uncle Bob)

Why Clean Architecture?

  • Separation of Concerns โ€” Separation of code in different modules or sections with specific responsibilities making it easier for maintenance and further modification.
  • Loose coupling โ€” Add flexibility to the code without breaking changes.
  • Can be tested easily.
Layers

The layers used

App(presentation) layer

Has UI functionality using activities,fragments, views etc. Communicates with both data and domain layers

Domain layer

Contains business logic and does not communicate with no other layer.

Data layer

Provides data to the app using network, databases etc Communicates with domain layer

Other components

Other components are

  • Use Cases (or interactors). Each individual functionality or business logic unit can be called a use case, like fetching data from the network. The are created to domain layer and presentation layer use the to communicate with data layer.
  • Repositories. Interfaces that are created into domain layer and implemented from data layer.

Technologies used

  • MVVM The presentation layer is based on it.
  • View binding
  • Room for database persistance
  • Hilt for depentancy injection
  • Coroutines

Other libraries

  • okhttp for networking
  • glide for images

weatherapp's People

Contributors

sotcha avatar

Watchers

 avatar  avatar

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.