Skip to content

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

Notifications You must be signed in to change notification settings

alexmamo/FirestoreJetpackCompose

Repository files navigation

FirestoreJetpackCompose - Clean Architecture with MVVM.

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:

alt text

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

About

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

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages