Giter VIP home page Giter VIP logo

curtmdb's Introduction

CurTMDb

This sample app contains 2 pages, popular movies list and about page. All the data is from The Movie Database(TMDb).

When first time launch the app, it will fetch Configuration data of TMDb and then fetch first page of popular movies list. Each item contains movie's thumbnail, title, release date, vote average and favorite icon. Favorite icon is clickable and data is saved locally, taht is local database. Because there are a large amount of movies, when scroll to bottom, app will automatically fetch data of further pages.

The app is written in Kotlin and uses Android Architecture Components - ViewModel, LiveData & Room, and Dagger2 for dependency injection. It also uses Kotlin Coroutine and Retrofit2 to fetch data, and Paging library help to handle load and display popular movies list.

There're 2 modules: AppModule containing all dependencies provides method app need: database, Dao, okHttpClient and RetrofitService; ViewModelModule provides ViewModelFactory via Dagger multi-bindings.

For security concern, in project root folder, please create file apikey.properties to successfully fetch api:

// apikey.properties
apikey="xxx"

And please create file signingconfig.properties to install released apk with proguard enabled:

// signingconfig.properties
storeFile=xxx
storePassword=xxx
keyAlias=xxx
keyPassword=xxx
This product uses the TMDb API but is not endorsed or certified by TMDb.

curtmdb's People

Contributors

chiangnango 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.