Giter Club home page Giter Club logo

moviesdbapp's Introduction

MoviesDbApp logo

App screenshots

feed detail1 detail2 detail3

Architecture & Implementation details

  • Simple Android app written in Kotlin based on Clean Architecture for layer abstractions (view/domain/data)
  • Model-View-Presenter for the presentation layer
  • Interactors / UseCases are used by the presenters to start a data retrieval flow
  • UseCases use Repository pattern to request the data needed
  • Repository in this case doesn't have DataSources because there's no database/cache/other sources to retrieve data than just Network. Repository in this project directly request data to the API
  • Two different data objects, DTO (Data transfer object) to parse API's response, and Business Object as our own data model.
  • DI with Dagger2
  • Asynchronous handled by RxJava2 (RxKotlin)
  • Image loading handled by Picasso

Error states

There are two possible network-failure scenarios in this app. Either when requesting the feed of movies or requesting recommendations for a certain show. In the first scenario a error view is shown where the user is able to tap Retry button, for the second scenario the recommendations layout is just hided.

How it looks like?

error1 error2

API

  • API used: themoviedb.org V3 (you can check the api documentation here).
  • Endpoints used: "tv/popular", "tv/{tv_id}/similar"

Third-Party Libraries

TODOs

  • Instrumentation Testing
  • Cache / database

Support & contact

[email protected]

@marcgdiez

moviesdbapp's People

Contributors

mgdiez avatar

Stargazers

 avatar  avatar

Watchers

 avatar

Forkers

smassive

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.