GithubHelp home page GithubHelp logo

pramodk007 / topcorn Goto Github PK

View Code? Open in Web Editor NEW

This project forked from theapache64/topcorn

0.0 0.0 0.0 1.69 MB

A minimalistic movie listing app to browse IMDB's top 250 movies, built to demonstrate MVVM with latest hot-trending Android development tools.

License: Apache License 2.0

Kotlin 100.00%

topcorn's Introduction

title GitHub issues GitHub forks GitHub stars GitHub license Twitter

light_screenshots

TopCorn ๐Ÿฟ

A minimalistic movie listing app to browse IMDB's top 250 movies, built to demonstrate MVVM with latest hot-trending Android development tools.

Dark Mode Available ๐ŸŒ™

dark_screenshots

Download ๐Ÿ“ฅ

  • Download latest APK from here

Built With ๐Ÿ› 

  • Kotlin - First class and official programming language for Android development.
  • Coroutines - For asynchronous and more..
  • Flow - A cold asynchronous data stream that sequentially emits values and completes normally or with an exception.
  • Android Architecture Components - Collection of libraries that help you design robust, testable, and maintainable apps.
    • LiveData - Data objects that notify views when the underlying database changes.
    • ViewModel - Stores UI-related data that isn't destroyed on UI changes.
    • ViewBinding - Generates a binding class for each XML layout file present in that module and allows you to more easily write code that interacts with views.
    • Room - SQLite object mapping library.
  • Dagger 2 - Dependency Injection Framework
  • Retrofit - A type-safe HTTP client for Android and Java.
  • Moshi - A modern JSON library for Kotlin and Java.
  • Moshi Converter - A Converter which uses Moshi for serialization to and from JSON.
  • Glide - An image loading library for Android backed by Kotlin Coroutines.
  • Material Components for Android - Modular and customizable Material Design UI components for Android.
  • TwinKill - A simple library, a collection of utility classes wrapped around JetPack components
  • MaterialColors - Android material color palettes

Architecture ๐Ÿ—ผ

This project follows the famous MVVM architecture and best practices from Google's GithubBrowserSample

Project Structure ๐Ÿ“‚

.
โ”œโ”€โ”€ App.kt
โ”œโ”€โ”€ data
โ”‚ย ย  โ”œโ”€โ”€ local
โ”‚ย ย  โ”‚ย ย  โ”œโ”€โ”€ AppDatabase.kt
โ”‚ย ย  โ”‚ย ย  โ”œโ”€โ”€ Converters.kt
โ”‚ย ย  โ”‚ย ย  โ”œโ”€โ”€ daos
โ”‚ย ย  โ”‚ย ย  โ”‚ย ย  โ””โ”€โ”€ MoviesDao.kt
โ”‚ย ย  โ”‚ย ย  โ””โ”€โ”€ entities
โ”‚ย ย  โ”œโ”€โ”€ remote
โ”‚ย ย  โ”‚ย ย  โ”œโ”€โ”€ ApiInterface.kt
โ”‚ย ย  โ”‚ย ย  โ””โ”€โ”€ Movie.kt
โ”‚ย ย  โ””โ”€โ”€ repositories
โ”‚ย ย      โ””โ”€โ”€ movies
โ”‚ย ย          โ””โ”€โ”€ MoviesRepo.kt
โ”œโ”€โ”€ di
โ”‚ย ย  โ”œโ”€โ”€ components
โ”‚ย ย  โ”‚ย ย  โ””โ”€โ”€ AppComponent.kt
โ”‚ย ย  โ””โ”€โ”€ modules
โ”‚ย ย      โ”œโ”€โ”€ ActivitiesBuilderModule.kt
โ”‚ย ย      โ”œโ”€โ”€ AppModule.kt
โ”‚ย ย      โ”œโ”€โ”€ DatabaseModule.kt
โ”‚ย ย      โ”œโ”€โ”€ NetworkModule.kt
โ”‚ย ย      โ”œโ”€โ”€ RepoModule.kt
โ”‚ย ย      โ””โ”€โ”€ ViewModelModule.kt
โ”œโ”€โ”€ models
โ”‚ย ย  โ””โ”€โ”€ FeedItem.kt
โ”œโ”€โ”€ ui
โ”‚ย ย  โ”œโ”€โ”€ activities
โ”‚ย ย  โ”‚ย ย  โ”œโ”€โ”€ feed
โ”‚ย ย  โ”‚ย ย  โ”‚ย ย  โ”œโ”€โ”€ FeedActivity.kt
โ”‚ย ย  โ”‚ย ย  โ”‚ย ย  โ””โ”€โ”€ FeedViewModel.kt
โ”‚ย ย  โ”‚ย ย  โ”œโ”€โ”€ movie
โ”‚ย ย  โ”‚ย ย  โ”‚ย ย  โ”œโ”€โ”€ MovieActivity.kt
โ”‚ย ย  โ”‚ย ย  โ”‚ย ย  โ””โ”€โ”€ MovieViewModel.kt
โ”‚ย ย  โ”‚ย ย  โ”œโ”€โ”€ splash
โ”‚ย ย  โ”‚ย ย  โ”‚ย ย  โ”œโ”€โ”€ SplashActivity.kt
โ”‚ย ย  โ”‚ย ย  โ”‚ย ย  โ””โ”€โ”€ SplashViewModel.kt
โ”‚ย ย  โ””โ”€โ”€ adapters
โ”‚ย ย      โ”œโ”€โ”€ FeedAdapter.kt
โ”‚ย ย      โ””โ”€โ”€ MoviesAdapter.kt
โ””โ”€โ”€ utils
    โ”œโ”€โ”€ BindingAdapters.kt
    โ”œโ”€โ”€ NetworkBoundResource.kt
    โ”œโ”€โ”€ retrofit
    โ”‚ย ย  โ”œโ”€โ”€ FlowResourceCallAdapterFactory.kt
    โ”‚ย ย  โ””โ”€โ”€ FlowResourceCallAdapter.kt
    โ””โ”€โ”€ test
        โ”œโ”€โ”€ EspressoIdlingResource.kt
        โ””โ”€โ”€ OpenForTesting.kt

21 directories, 30 files

Credits ๐Ÿค—

TODO ๐Ÿ—’๏ธ

  • Improve algorithms and code review
  • Add test cases
  • Integrate OMDB API to add search feature
  • Add favorites

Author โœ๏ธ

  • theapache64

topcorn's People

Contributors

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