Restaurant

Restaurant is a demo application based on modern Android application tech-stacks and MVVM architecture.

Fetching data from the network via repository pattern.

A sample Restaurant application based on MVVM (ViewModel, Coroutines, Flow, Repository, Hilt) architecture

Download

Go to the Releases to download the latest APK.

gif

Tech stack & Open-source libraries

  • Minimum SDK level 21
  • Kotlin based + Coroutines for asynchronous.
  • JetPack
    • Kotlin flows - notify domain layer data to views.
    • Lifecycle - dispose of observing data when lifecycle state changes.
    • ViewModel - UI related data holder, lifecycle aware.
  • Architecture
    • MVVM Architecture (View - DataBinding - ViewModel - Model)
    • Repository pattern
    • Hilt - dependency injection.
  • Retrofit2 & Gson - construct the REST APIs.
  • OkHttp3 - implementing interceptor, logging and mocking web server.
  • Glide - loading images.
  • Timber - logging.
  • ShummerLayout - an Android library that provides an easy way to add a shimmer effect to any view in your Android app.
  • Material-Components - Material design components like ripple animation, cardView.

Architecture

Resturant is based on MVVM architecture and a repository pattern.

77502018-f7d36000-6e9c-11ea-92b0-1097240c8689

GitHub

https://github.com/zerox321/Restaurant