Git Product home page Git Product logo

githubmvp's Introduction

GitHubMVP

Android app that allows the user to search for GitHub repos by a given username. The architecture is based on Clean Architecture using Model-View-Presenter + Interactor + Repository patterns.

Architecture

App architecture

  1. Data layer: All data needed for the application comes from this layer using the Repository pattern with a Factory pattern to create an InMemoryRepository or a NetworkRepository if the given username is cached or not, respectively. The idea behind this is the data source is transparent for the client.
  2. Domain layer: All the business logic happens in this layer. You will find all the Interactors here.
  3. Presentation layer: Here lives the Model-View-Presenter (MVP) pattern, where the View is an Activity or a Fragment, the Model is a UI model and the Presenter is the man-in-the-middle that handles user actions from the View, then consumes data through Interactors and finally passes the data to be rendered to the View.

Testing

  1. Unit Testing: Unit Tests that run on the JVM, using JUnit and Mockito frameworks.
  2. UI Testing: UI Tests that runs on an Emulator or a device, using Robotium and Espresso frameworks.

githubmvp's People

Contributors

andevcba avatar lucaslabs avatar matiasmb 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.