Socket
Book a DemoInstallSign in
Socket

@rollinginfra/state-store-google-firestore

Package Overview
Dependencies
Maintainers
2
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@rollinginfra/state-store-google-firestore

Store JSON state objects in Google Firestore. Keys can be any valid UTF-8 string.

latest
npmnpm
Version
1.0.0
Version published
Maintainers
2
Created
Source

State Store - Google Firestore

Store JSON state objects in Google Firestore. Keys can be any valid UTF-8 string.

Set Up Google Firestore

  • Enable the Firestore API
  • Create a Firestore database instance N.B. You must select the "Native mode" if prompted to choose a mode. The Datastore mode is for legacy support, and will not work with this package.
  • Choose a collection name. You don't actually need to create it as collections are automatically created when documents are added to them.

Set up your local environment

You can set up your local environment by running gcloud init and following the prompts to authenticate.

import StateStoreGoogleFirestore from '@rollinginfra/state-store-google-firestore';

const state = new StateStoreGoogleFirestore({
  googleProjectID: `YOUR_GOOGLE_PROJECT_NAME`,
  collectionName: `YOUR_COLLECTION_NAME`,
});

FAQs

Package last updated on 05 Jul 2021

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts