FileDB

Integration published by Jovo | 32,300 downloads

Store user data in a local JSON file for fast prototyping and debugging

FileDB Local JSON Database Integration

Learn more about the default database for prototyping with Jovo: A file based system that stores user specific data to a JSON file.

Introduction

Note: This database type is not supposed to be used in production. See other database integrations for options when the app is live.

The FileDB integration allows you to easily store user session data in a JSON file. This is especially helpful for local development and prototyping. Data will be stored to a db.json file that can be found in a db folder:

This is an example how the file structure looks like, with the userID as a mainKey and some persisted data with someKey and someValue, which can be added with this.$user.$data.someKey = 'someValue';:

Configuration

Most Jovo templates come with FileDB as default database integration.

It can be enabled in the src/app.js file like this:

In your config.js file, you can set the db configuration like this:

Once the configuration is done, the File DB database integration will create a file in the specified folder (eg. ../db/db.json) on the first read/write attempt. No need for you to create the file.

FileDB Changelog

Current version might be higher than the latest changes displayed below because of updates of dependencies.

3.0.11 (2020-04-06)

  • Updated Typescript to 3.8.x
  • Updated Prettier to 2.x

Committers: 2

2.x

Find the 2.x changelog here.

Join Our Newsletter

Be the first to get our free tutorials, courses, and other resources for voice app developers.