Skip to content

Latest commit

 

History

History
43 lines (33 loc) · 1.64 KB

README.md

File metadata and controls

43 lines (33 loc) · 1.64 KB

Firestore Quickstart

Introduction

FriendlyEats is a restaurant recommendation app built on Firestore. It has offline persistence enabled. For more information about Firestore visit the docs.

Setup and run the app

Follow these steps to setup and run the quickstart:

  1. Create a Firebase project in the Firebase Console.
  2. In the Firebase console, enable Anonymous authentication on your project by doing: Authentication > SIGN-IN METHOD > Anonymous > Enable > SAVE
  3. In the Firebase console, enable Firestore on your project by clicking Create Database in the Cloud Firestore section of the console and answering all prompts.
    1. Select testing mode for the security rules
  4. Copy/Download this repo and open this folder in a Terminal.
  5. Install the Firebase CLI if you do not have it installed on your machine:
    npm -g i firebase-tools
  6. Set the CLI to use the project you created on step 1:
    firebase use --add
  7. Deploy the Firestore security rules and indexes:
    firebase deploy --only firestore
  8. Run a local server:
    firebase serve
  9. As indicated, open http://localhost:5000 in your browser and try out the app.

Support

License

© Google, 2017. Licensed under an Apache-2 license.