1.2.1 • Published 12 months ago

@lautmaler/jovo-db-firestore v1.2.1

Weekly downloads
-
License
Apache-2.0
Repository
-
Last release
12 months ago

Jovo FirestoreDb Database Integration

Jovo Framework

This package enables you to integrate your Jovo app with a Firestore database.

$ npm install @lautmaler/jovo-db-firestore

Installation

You can install the plugin like this:

$ npm install @lautmaler/jovo-db-firestore

Add it as plugin to any stage you like, e.g. app.prod.ts:

import { FirestoreDb } from '@lautmaler/jovo-db-firestore';
// ...

app.configure({
  plugins: [
    new FirestoreDb({
      collection: '<YOUR-FIRESTOREB-COLLECTION-NAME>',
    }),
    // ...
  ],
});

Configuration

The following configuration can be added:

new FirestoreDb({
  collection: '<FIRESTOREDB-COLLECTION-NAME>',
  keyFileName: '<FILE-IDENTIFIER-FOR-SERVICE-ACCOUNT-CREDENTIALS>',
  credentials: {
    clientEmail: '<SERVICE-ACCOUNT-CLIENT_EMAIL>',
    privateKey: '<SERVICE-ACCOUNT-PRIVATE_KEY>',
  },
  projectId: '<GOOGLE-CLOUD-PROJECT-ID>',
});
1.2.0

12 months ago

1.2.1

12 months ago

1.1.5

1 year ago

1.1.4

2 years ago

1.1.1

2 years ago

1.1.0

2 years ago

1.1.3

2 years ago

1.1.2

2 years ago

1.0.2

3 years ago

1.0.1

3 years ago

1.0.0

3 years ago