Simple Movie application showcasing use of Firestore document based database.
This application is built to showcase use of Firestore concepts at Google Devfest'17 Mumbai Android workshop.
With the app, you can:
- Push set of mock movies on Firestore Database
- Submit / Read reviews about movies
- Submit / View Ratings
Movie Listing | Movie Details |
---|---|
Movie Remixer | Movie Reviews |
---|---|
Movie Ratings |
---|
- Root Collection is Movies which Contain multiple Movie documents
- Each Movie document inturn contains two collections -> Ratings and Reviews
Movie |
---|
totalRatings |
averageRatings |
totalReviews |
title |
poster |
language |
adult |
overview |
releaseDate |
Rating |
---|
ratings |
date |
Reviews |
---|
review |
date |
- Open the Firebase Console and click Add project.
- Select the option to Enable Cloud Firestore Beta for this project.
- Click Create Project
- Download google-services.json and keep in root of app module.
Add following firebase dependencies.
Gradle | Dependency |
---|---|
Project Level | classpath 'com.google.gms:google-services:3.1.0' |
App Level | implementation 'com.google.firebase:firebase-auth:11.4.2' |
App Level | implementation 'com.google.firebase:firebase-firestore:11.4.2' |
App Level ( End) | apply plugin: 'com.google.gms.google-services' |