Giter VIP home page Giter VIP logo

dog-ceo-api's Introduction

Dog Breeds App

This app uses Dog CEO API to load data into the app.

The architecture of this project is MMVM (Model View ViewModel) Clean Architecture. The app is architectured in a way that it would be easier to understand for other developers and reviewers. I have used clean architecture because it goes a step further in segregating the code base’s responsibilities and concerns.

The architecture of the app is divided into three layers.

  • Ui Layer (Presentation Layer)
  • Domain Layer
  • Data Layer

Jetpack libraries

  • Compose - Defines UI programmatically with composable functions that describe its shape and data dependencies.
  • Compose Foundation - Write Jetpack Compose applications with ready-to-use building blocks and extend the foundation to build your design system pieces.
  • Compose UI - Fundamental components of compose UI needed to interact with the device, including layout, drawing, and input.
  • Compose Material - Build Jetpack Compose UIs with ready-to-use Material Design Components.
  • Arch Core - Helper for other arch dependencies, including JUnit test rules.
  • Room - Create, store, and manage persistent data backed by an SQLite database.
  • Hilt - Dependency injection plays a central role in the architectural pattern used.
  • Navigation - Build and structure your in-app UI, handle deep links, and navigate between screens.

Other libraries

  • Kotlinx Coroutines - Library Support for coroutines. I used this for asynchronous programming to obtain data from the network.
  • Retrofit - Type-safe HTTP client and supports coroutines out of the box.
  • Moshi - JSON Parser, used to parse requests on the data layer for Entities and understands Kotlin non-nullable and default parameters.
  • okhttp-logging-interceptor - Logs HTTP request and response data.
  • Hilt - Dependency injection plays a central role in the architectural pattern used.
  • JUnit - This was used for unit testing the database, the use cases, and the ViewModels.
  • Mockk This is a mocking library for Kotlin. I used it to provide test doubles during testing.
  • Truth - Assertions Library, provides readability as far as assertions are concerned.
  • Espresso - Used for writing Android UI tests for our DAO.
  • Coil - Image loading for Android backed by Kotlin Coroutines.
  • Accompanist Pager - A library that provides paging layouts for Jetpack Compose.
  • Accompanist Navigation Animation A library that provides Compose Animation support for Jetpack Navigation Compose.
  • Kotest Assertions - I am using it in the test cases. Kotest calls types of state assertion functions matchers.

dog-ceo-api's People

Contributors

smsameer88 avatar

Watchers

 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.