Use Firestore and Jetpack Compose to display a list of items.
Learning Objectives
- Explain what Firebase is.
- Configure Firebase Android Project.
- Use Firestore and Jetpack Compose to display a list of Items.
Let's have an Growth Mindset and learn how to integrate two powerful technologies:
- Firestore Realtime Database
- Jetpack Compose
Main Topics
- Firestore
- Jetpack Compose
- Firebase
- Android
🗣️ "I hear and I forget I see and I remember I do and I understand." Confucius
- Create an account on Firebase</>.
- Create a new project on the Firebase Console</>.
- Download this repository and open it on Android Studio.
- Open the build.gradle(:app) file and change the project id so it is unique:
defaultConfig {
applicationId "org.adaschool.firebase.compose.<replace_with_unique_name_to_register_project>"
- Add the Android configuration to the Firebase project with Android(using the same Android project id create on step 5).
- Follow the configuration steps on the Firestore console</> until you donwload and add the google-services.json file into your Android project.
- Run your project and verify that everything works by adding a new message and seeing it on the Firestore console</>.
-
Modify this prototype to create a more complex model, for instance add more fields to the form and then display them on the list item.
Hint: You could create a messageing App such as Telegram or Whatsapp.