Git Product home page Git Product logo

topcorn2's Introduction

GitHub Cards Preview

TopCorn 2 🍿

A minimalistic movie listing app to browse IMDB's top 250 movies, built to demonstrate MVVM with Jetpack Compose.

GitHub issues GitHub forks GitHub stars GitHub license Twitter

Try latest TopCorn2 app apk from below πŸ‘‡

TopCorn2


Designs - Dark Mode Available πŸŒ™

dark_screenshots dark_screenshots


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.
  • Compose - Android’s modern toolkit for building native UI.
  • Navigation - A set of libraries, a plugin, and tooling that simplifies Android navigation.
  • 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.
    • Room - SQLite object mapping library.
  • Hilt - 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.
  • Coil - An image loading library for Android.
  • Material Components for Android - Modular and customizable Material Design UI components for Android.

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
β”‚Β Β  β”œβ”€β”€ remote
β”‚Β Β  β”‚Β Β  β”œβ”€β”€ ApiInterface.kt
β”‚Β Β  β”‚Β Β  └── Movie.kt
β”‚Β Β  └── repo
β”‚Β Β      └── MoviesRepo.kt
β”œβ”€β”€ di
β”‚Β Β  └── modules
β”‚Β Β      β”œβ”€β”€ DatabaseModule.kt
β”‚Β Β      β”œβ”€β”€ NetworkModule.kt
β”‚Β Β      └── PreferenceModule.kt
β”œβ”€β”€ model
β”‚Β Β  └── Category.kt
β”œβ”€β”€ ui
β”‚Β Β  β”œβ”€β”€ common
β”‚Β Β  β”‚Β Β  β”œβ”€β”€ Fakes.kt
β”‚Β Β  β”‚Β Β  β”œβ”€β”€ Poster.kt
β”‚Β Β  β”‚Β Β  └── RetryMessage.kt
β”‚Β Β  β”œβ”€β”€ main
β”‚Β Β  β”‚Β Β  β”œβ”€β”€ MainActivity.kt
β”‚Β Β  β”‚Β Β  └── MainViewModel.kt
β”‚Β Β  β”œβ”€β”€ screen
β”‚Β Β  β”‚Β Β  β”œβ”€β”€ detail
β”‚Β Β  β”‚Β Β  β”‚Β Β  β”œβ”€β”€ MovieDetailFragment.kt
β”‚Β Β  β”‚Β Β  β”‚Β Β  β”œβ”€β”€ MovieDetailScreen.kt
β”‚Β Β  β”‚Β Β  β”‚Β Β  └── MovieDetailViewModel.kt
β”‚Β Β  β”‚Β Β  β”œβ”€β”€ movies
β”‚Β Β  β”‚Β Β  β”‚Β Β  β”œβ”€β”€ MoviesFragment.kt
β”‚Β Β  β”‚Β Β  β”‚Β Β  β”œβ”€β”€ MoviesScreen.kt
β”‚Β Β  β”‚Β Β  β”‚Β Β  └── MoviesViewModel.kt
β”‚Β Β  β”‚Β Β  └── splash
β”‚Β Β  β”‚Β Β      β”œβ”€β”€ SplashFragment.kt
β”‚Β Β  β”‚Β Β      β”œβ”€β”€ SplashScreen.kt
β”‚Β Β  β”‚Β Β      └── SplashViewModel.kt
β”‚Β Β  β”œβ”€β”€ test
β”‚Β Β  β”‚Β Β  β”œβ”€β”€ TestActivity.kt
β”‚Β Β  β”‚Β Β  └── TestViewModel.kt
β”‚Β Β  └── theme
β”‚Β Β      β”œβ”€β”€ Theme.kt
β”‚Β Β      └── Typography.kt
└── utils
    β”œβ”€β”€ calladapter
    β”‚Β Β  └── flow
    β”‚Β Β      β”œβ”€β”€ FlowResourceCallAdapterFactory.kt
    β”‚Β Β      β”œβ”€β”€ FlowResourceCallAdapter.kt
    β”‚Β Β      └── Resource.kt
    β”œβ”€β”€ flow
    β”‚Β Β  └── EventFlow.kt
    └── NetworkBoundResource.kt

21 directories, 34 files

Ohh you hate Compose? NP 🀷

Well, we've XML version here, The TopCorn 1

Credits πŸ€—


TODO πŸ—’οΈ

  • Improve algorithms and code review
  • Add test cases

topcorn2's People

Contributors

grad1e avatar spikeysanju avatar 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.