Skip to content

Latest commit

 

History

History
83 lines (63 loc) · 2.27 KB

README.md

File metadata and controls

83 lines (63 loc) · 2.27 KB

FirestoreMovies

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.

Features

With the app, you can:

  • Push set of mock movies on Firestore Database
  • Submit / Read reviews about movies
  • Submit / View Ratings

Screens

Movie Listing Movie Details
Movie Remixer Movie Reviews
screen screen
Movie Ratings
screen

Diagram

Description

  • Root Collection is Movies which Contain multiple Movie documents
  • Each Movie document inturn contains two collections -> Ratings and Reviews

Documents

Movie
totalRatings
averageRatings
totalReviews
title
poster
language
adult
overview
releaseDate
Rating
email
ratings
date
Reviews
email
review
date

Libraries

Steps

  • 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'