alexmamo / FirestorePagination

FirestorePagination app is built with Cloud Firestore and Kotlin using MVVM Architecture Pattern.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

FirestorePagination - Clean Architecture with MVVM.

It's an aplication build with Kotlin as an example on how to paginate a Cloud Firestore database, using Paging library v3.

To keep things simple, the app uses a very simple database schema that look like in the image below:

alt text

For getting the data, the app uses Flow and ViewModel together with Kotlin Coroutines in a MVVM Architecture Pattern. For dependency injection the app uses Hilt for Android. Besides that, the app also uses data binding to bind UI components in the layouts.

To make this app work, follow the instructions given in the official documentation regarding how to add Firebase to your project. Add the JSON file in your app folder, add some dummy products and see it working.

This repo is the source code of the this article: How to paginate Firestore using Paging 3 on Android?

See it also on youtube: https://youtu.be/4JOzozH5eOQ

About

FirestorePagination app is built with Cloud Firestore and Kotlin using MVVM Architecture Pattern.


Languages

Language:Kotlin 100.0%