All Projects → amrro → Firestore Android Arch Components

amrro / Firestore Android Arch Components

Licence: apache-2.0
Firestore sample with Android architecture component.

Programming Languages

java
68154 projects - #9 most used programming language

Projects that are alternatives of or similar to Firestore Android Arch Components

Nit Talk
Group Messaging Chat (Discord Clone 👀) App Using Firebase Cloud-Firestore following MVVM Architecture
Stars: ✭ 27 (-74.77%)
Mutual labels:  firebase-auth, mvvm-architecture
ResDelivery-Hilt-Coroutines-Mvvm-Single-Activity
This is a Sample Single Activity App (Multi Fragments) that uses Dagger-Hilt, Coroutines Flows, Paging 3 & Mvvm Clean Architecture
Stars: ✭ 28 (-73.83%)
Mutual labels:  firebase-auth, mvvm-architecture
ChatApp
Chat app based on Firebase tools.
Stars: ✭ 88 (-17.76%)
Mutual labels:  firebase-auth, mvvm-architecture
BooksApp
Book selling application with MVVM (Model, View, ViewModel), LiveData, DataBinding, Retrofit, Room Database, Navigation Component(NavGraph, BottomNav), ViewPager2 in TabLayout, SearchView, Vertical Adapter(BestSellers) and Horizontal Adapter(All Books) with ConcatAdapter for Main Screen, Firebase Auth, SearchView in Adapter, Picasso, Lottie, Ani…
Stars: ✭ 53 (-50.47%)
Mutual labels:  firebase-auth, mvvm-architecture
Transact
A transaction management android app which allows you to verify records from both parties before addition.
Stars: ✭ 21 (-80.37%)
Mutual labels:  firebase-auth, mvvm-architecture
Retromusicplayer
Best material design music player for Android
Stars: ✭ 1,171 (+994.39%)
Mutual labels:  mvvm-architecture
Sapper Graphql Firebase
Svelte + Sapper + GraphQL + Firebase Auth
Stars: ✭ 88 (-17.76%)
Mutual labels:  firebase-auth
Moviefinderusingmvvm Android
🔥 MVVM + Clean Architecture + Best Practices | 🍿Movie Finder is a sample Android application 📱to search movies using OMDb API which is built to demonstrate use of Modern Android development tools - (Kotlin, Coroutines, Kodein, Architecture Components, MVVM, Retrofit, Gson, Material Components) 😊😊😉
Stars: ✭ 66 (-38.32%)
Mutual labels:  mvvm-architecture
Flutter twitter clone
Fully functional Twitter clone built in flutter framework using Firebase realtime database and storage
Stars: ✭ 1,123 (+949.53%)
Mutual labels:  firebase-auth
Firebase Auth Lite
A lightweight firebase auth alternative for the browser
Stars: ✭ 101 (-5.61%)
Mutual labels:  firebase-auth
Mvvmarch
MVVM architecture demo. You can build a project quickly with Lifecycle+Retrofit+Room.
Stars: ✭ 95 (-11.21%)
Mutual labels:  mvvm-architecture
The Road To React With Firebase
📓The Road to React with Firebase: Your journey to build business applications with React and Firebase.
Stars: ✭ 82 (-23.36%)
Mutual labels:  firebase-auth
Android Mvvm Rx3 Dagger2 Navcomponent
Implemented using MVVM, LiveData, Room, RX3, Dagger2, Coil, View Binding, Navigation Component and AndroidX
Stars: ✭ 72 (-32.71%)
Mutual labels:  mvvm-architecture
Flutter Mvvm Provider Demo
Stars: ✭ 89 (-16.82%)
Mutual labels:  mvvm-architecture
Plasma
An Android Application written using latest Android Jetpack components and best practices, which displays trending movies/TV shows and cast, user can search movies and TV shows and also add them to watchlist.
Stars: ✭ 67 (-37.38%)
Mutual labels:  mvvm-architecture
Covid 19 Tracker
Android app to track COVID-19 cases in India and globally.
Stars: ✭ 96 (-10.28%)
Mutual labels:  mvvm-architecture
Knowweather
一款美观、实用的天气app。实践了模块化架构 和 Android Architecture Components
Stars: ✭ 1,138 (+963.55%)
Mutual labels:  mvvm-architecture
Mvvm Starter
starter for Android MVVM Project using DataBinding Library
Stars: ✭ 81 (-24.3%)
Mutual labels:  mvvm-architecture
Alfonz
Mr. Alfonz is here to help you build your Android app, make the development process easier and avoid boilerplate code.
Stars: ✭ 90 (-15.89%)
Mutual labels:  mvvm-architecture
Movietray
Its a playground application focusing on Paging3, MVVM architecture, Kotlin Extension functions, Retrofit, DSL, Navigation component, MotionLayout, SharedElementTransition, Single Activity Architecture, DataStore etc.
Stars: ✭ 78 (-27.1%)
Mutual labels:  mvvm-architecture

Cloud Firestore Quickstart

Introduction

Fire Eats is a restaurant recommendation app built on Cloud Firestore alongside Android Architecture Component.

After reading about the new Android Architecture Component's guide to architect your app. I converted the orignal sample presented by firebase to use the component with respect due architecture recommendation in the guide.

For more information about Firestore visit the docs. For more information about Android Architecture Components visit the docs.

Getting Started

Security Rules

Add the following security rules to your project in the: rules tab:

service cloud.firestore {  
  match /databases/{database}/documents {
    // Anyone can read a restaurant, only authorized
    // users can create, update, or delete them.
  	 match /restaurants/{restaurantId} {
    	 allow read: if true;
    	 allow create, update, delete: if request.auth.uid != null;
    }
    
    // Anyone can read a rating. Only the user who made the rating
    // can delete it. Ratings can never be updated.
    match /restaurants/{restaurantId}/ratings/{ratingId} {
    	 allow read: if true;
      allow create: if request.auth.uid != null;
    	 allow delete: if request.resource.data.userId == request.auth.uid;
    	 allow update: if false;
    }
  }
}

Run the App

  • When you open the app you will be prompted to sign in, choose any email and password.
  • When you first open the app it will be empty, choose Add Random Items from the overflow menu to add some new entries.

Result

Indexes

As you use the app's filter functionality you may see warnings in logcat that look like this:

com.google.firebase.example.fireeats W/Firestore Adapter: onEvent:error
com.google.firebase.firestore.FirebaseFirestoreException: FAILED_PRECONDITION: The query requires an index. You can create it here: https://console.firebase.google.com/project/...

This is because indexes are required for most compound queries in Cloud Firestore. Clicking on the link from the error message will automatically open the index creation UI in the Firebase console with the correct paramters filled in:

This app also provides an index specification file in indexes.json which specifies all indexes required to run the application. You can add all of these indexes programatically using the Firebase CLI.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].