3.6.1 • Published 2 years ago

jovo-db-datastore v3.6.1

Weekly downloads
52
License
Apache-2.0
Repository
-
Last release
2 years ago

Google Cloud Datastore Database Integration

To view this page on the Jovo website, visit https://v3.jovo.tech/marketplace/jovo-db-datastore

Learn how to store user specific data of your Alexa Skills and Google Actions to Google Cloud Datastore.

Introduction

The Google Cloud Datastore integration allows you to store user session data in the NoSQL service running on Google Cloud. This integration is especially convenient if you're running your voice app on Google Cloud Functions. You can find the official documentation about Google Cloud Datastore here: cloud.google.com/datastore.

Learn more about hosting your application on Google Cloud Functions.

Configuration

Download the package like this:

$ npm install --save jovo-db-datastore

Google Cloud Datastore can be enabled in the src/app.js file like this:

// @language=javascript

// src/app.js

const { DatastoreDb } = require('jovo-db-datastore');

// Enable DB after app initialization
app.use(new DatastoreDb());

// @language=typescript

// src/app.ts

import { DatastoreDb } from 'jovo-db-datastore';

// Enable DB after app initialization
app.use(new DatastoreDb());

The Jovo Datastore plugin and the official Google Datastore package (Google Cloud Datastore Docs) share the same configuration options. You can specify them in your config.js file the following way:

// @language=javascript

// src/config.js

module.exports = {
    
    db: {
        DatastoreDb: {
            gCloudConfig: {
				// Datastore configuration...
			},
        },
    },

    // ...

};

// @language=typescript

// src/config.ts

const config = {
    
    db: {
        DatastoreDb: {
            gCloudConfig: {
				// Datastore configuration...
			}
        },
    },

    // ...

};

It's important that you authenticate your client with the Google Cloud API. The recommended way is to use a Google service account. You can specify the path to the service account's JSON key file path in your config.js file:

// @language=javascript

// src/config.js

module.exports = {
    
    db: {
        DatastoreDb: {
            gCloudConfig: {
				keyFilename: '<path-to-key-file>'
			},
        },
    },

    // ...

};

// @language=typescript

// src/config.ts

const config = {
    
    db: {
        DatastoreDb: {
            gCloudConfig: {
				keyFilename: '<path-to-key-file>'
			}
        },
    },

    // ...

};
3.6.1

2 years ago

3.6.0

2 years ago

3.5.1

3 years ago

3.5.0

3 years ago

3.4.1

3 years ago

3.4.0

3 years ago

3.3.1

3 years ago

3.3.0

3 years ago

3.2.2

3 years ago

3.2.1

3 years ago

3.2.0

4 years ago

3.1.5

4 years ago

3.1.4

4 years ago

3.1.3

4 years ago

3.1.2

4 years ago

3.1.0

4 years ago

3.0.22

4 years ago

3.0.21

4 years ago

3.0.20

4 years ago

3.0.19

4 years ago

3.0.18

4 years ago

3.0.17

4 years ago

3.0.16

4 years ago

3.0.15

4 years ago

3.0.14

4 years ago

3.0.13

4 years ago

3.0.12

4 years ago

3.0.11

4 years ago

3.0.10

4 years ago

3.0.9

4 years ago

3.0.8

4 years ago

3.0.7

4 years ago

3.0.6

4 years ago

3.0.5

4 years ago

3.0.4

4 years ago

3.0.3

4 years ago

3.0.2

4 years ago

3.0.1

4 years ago

3.0.0

4 years ago

2.2.21

4 years ago

2.2.20

4 years ago

2.2.18

4 years ago

2.2.17

4 years ago

2.2.15

4 years ago

2.2.14

5 years ago

2.2.13

5 years ago

2.2.12

5 years ago

2.2.11

5 years ago

2.2.10

5 years ago

2.2.9

5 years ago

2.2.8

5 years ago

2.2.7

5 years ago

2.2.6

5 years ago

2.2.5

5 years ago

2.2.4

5 years ago

2.2.3

5 years ago

2.2.2

5 years ago

2.2.1

5 years ago

2.2.0

5 years ago

2.1.3

5 years ago

2.1.2

5 years ago

2.1.1

5 years ago

2.1.0

5 years ago

2.0.14

5 years ago

2.0.13

5 years ago

2.0.12

5 years ago

2.0.11

5 years ago

2.0.10

5 years ago

2.0.9

5 years ago

2.0.8

5 years ago

2.0.7

5 years ago

2.0.6

5 years ago

2.0.5

5 years ago

2.0.4

5 years ago

2.0.3

5 years ago

2.0.2

5 years ago

2.0.2-beta.10

5 years ago

2.0.2-beta.9

5 years ago

2.0.2-beta.8

5 years ago

2.0.2-beta.7

5 years ago

2.0.2-beta.6

5 years ago

2.0.2-beta.5

5 years ago

2.0.2-beta.4

5 years ago

2.0.2-beta.3

5 years ago

2.0.2-beta.2

5 years ago

2.0.2-beta.1

5 years ago

2.0.2-beta.0

5 years ago

2.0.1-alpha.13

5 years ago

2.0.1-alpha.12

5 years ago

2.0.1-alpha.11

5 years ago

2.0.1-alpha.4

5 years ago