Generate Firestore Data

Generate mock Firestore data to quickly start building your UI.

This module is meant to run on node NOT on the browser or react-native. Use this in your node server or in cli tools.

Installation

API

  yarn add generate-firestore-data
  # If you don't already have firebase-admin as a dependency then add it too
  yarn add firebase-admin

CLI

  # In your project :
  yarn add -D generate-firestore-data
  yarn generate-firestore-data <schemaFilePath> <credentialsFilePath>

  # Or globally :
  npm i -g generate-firestore-data
  generate-firestore-data <schemaFilePath> <credentialsFilePath>

Last updated