Cloud Firestore

Kickstart utilizes the cloud firestore for storing user collections. You expand it to store more collections as you like.

Create a database

Choose production mode

Enable firestore

Setup security rules to allow the login user to read and write their user document.

rules_version = '2';
service cloud.firestore {
  match /databases/{database}/documents {
    match /users/{uid} {
      allow read, write: if isUser(uid);

function isUser(uid) {
  return isSignedIn() && request.auth.uid == uid;

function isSignedIn() {
  return request.auth.uid != null;

function isOwner(){
  return isUser(currentData().customerId);

function currentData() {

Repeat the same steps to create cloud firestore for the production environment.