It's an aplication build with Kotlin as an example on how to display data from a Cloud Firestore database, using Jetpack Compose.
To keep things simple, the app uses a very simple database schema that look like in the image below:
The app uses the ViewModel together with Kotlin Coroutines in a MVVM Architecture Pattern. For dependency injection the app uses Hilt for Android.
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 display data from Firestore using Jetpack Compose?
See it also on youtube: https://www.youtube.com/watch?v=QaJFqRCoK1o&ab_channel=AlexMamo