Back to Trending
RepositoryJava
mitchtabian

mitchtabian/Local-db-Cache-Retrofit-REST-API-MVVM

App that interacts with a REST API using Retrofit. There is a local db cache and architecture is MVVM

188stars
118forks
0issues
1views

Local Database Cache with REST API, Retrofit2, MVVM Architecture

Watch the app demo.


In this course you'll learn how to build a local database cache with SQLite and Room. The cache retrieves data from a REST API using Retrofit2. Architecture is MVVM.

Here's the specifics of what you will see in the course:

  1. Caching data for when the network goes offline
  2. Reading cached data when the network is down
  3. Custom SQLite queries using Room
  4. Customizing the cache (how long data will live in the cache)
  5. How Retrofit caching works
  6. Why SQLite and Room is better for caching than Retrofit
  7. How to design a database cache
    • There is no "one size fits all"
    • Retrofit is better for some things but room is better for others
  8. How Glide caching works
  9. Glide RecyclerView Preloader (Customizing how many list items get cached)
  10. Dealing with Network Errors and slow network speeds
  11. OkHttp Network Timeouts
  12. Converting Retrofit Calls to LiveData (Call Adapters)
  13. And much more...

Architecture Diagram



Contributors

  1. gmiklay
    1. Converted to AndroidX: branch: pr/1

Similar Projects

Discover other similar projects and AI models.

RepositoryKotlin
PatilShreyas/Foodium

🍲Foodium is a sample food blog Android application 📱 built to demonstrate the use of Modern Android development tools - (Kotlin, Coroutines, Flow, Dagger 2/Hilt, Architecture Components, MVVM, Room, Retrofit, Moshi, Material Components).

2.3k
Mar 20, 2026
RepositoryKotlin
zhujiang521/PlayAndroid

🔥🔥🔥 Kotlin + MVVM + LCE版玩安卓,暗黑模式、横竖屏、无网、弱网、无数据、加载失败等等各种情况,协程、Room、Hilt、DataStore、LiveData、Retrofit、屏幕适配、本地缓存、多语言切换、多 lib,你想要的我都有!!!

1.7k
Jan 23, 2026
RepositoryJava
goldze/MVVMHabit

👕基于谷歌最新AAC架构,MVVM设计模式的一套快速开发库,整合Okhttp+RxJava+Retrofit+Glide等主流模块,满足日常开发需求。使用该框架可以快速开发一个高质量、易维护的Android应用。

7.7k
Aug 11, 2022
RepositoryKotlin
uber/RIBs

Uber's cross-platform mobile architecture framework - Android Repository

8.0k
Oct 22, 2026
RepositoryKotlin
igorwojda/android-showcase

💎 Android application following best practices: Kotlin, Coroutines, JetPack, Clean Architecture, Feature Modules, Tests, MVVM, DI, Static Analysis...

6.8k
Nov 25, 2026
RepositorySwift
nalexn/clean-architecture-swiftui

SwiftUI sample app using Clean Architecture. Examples of working with SwiftData persistence, networking, dependency injection, unit testing, and more.

6.6k
Jul 14, 2025
RepositorySwift
kudoleh/iOS-Clean-Architecture-MVVM

Template iOS app using Clean Architecture and MVVM. Includes DIContainer, FlowCoordinator, DTO, Response Caching and one of the views in SwiftUI

4.4k
Oct 11, 2026
RepositoryKotlin
ahmedeltaher/Agnentic-Voice-AI-SDK

Voice AI SDK is a reusable Android library that gives any app a full voice-driven AI conversation pipeline in minutes. Voice Assistant + Android Voide AI + SDK + MVVM + Kotlin

2.6k
Jun 1, 2026
RepositoryKotlin
qingmei2/MVVM-Architecture

The practice of MVVM + Jetpack architecture in Android.

1.9k
Apr 7, 2022