Watch: Set up Firebase and Firestore for my app | Vovy

Watch Vovy do it on a Mac: "Create a Firebase project with Firestore and connect it to my app". Create a Firebase project, add a web app, turn on Cloud Firestore in production mode, and connect your app with the config snippet.

"Create a Firebase project with Firestore and connect it to my app"

Create a Firebase project, add a web app, turn on Cloud Firestore in production mode, and connect your app with the config snippet.

What happens in the video

  1. Create the Firebase project: Vovy opens console.firebase.google.com, clicks Create a project, and names it. You sign in with Google yourself.
  2. Register a web app: Vovy clicks the web icon to add an app and copies the firebaseConfig snippet. That config is fine to have in browser code.
  3. Create the Firestore database: Vovy opens Firestore Database, clicks Create database, picks a location, and starts in production mode, so nothing is open to the world by default.
  4. Add the SDK to your app: Vovy installs the firebase package with npm and adds a small setup file using your config.
  5. Write and read a test document: Vovy writes simple security rules for signed-in users, saves a test document, reads it back, and shows it in the Firestore console.
Read the step-by-step guide