@slack-wrench/bolt-storage-file
v1.3.0
Published
Test bolt db using a local file system.
Downloads
8
Readme
Bolt File Storage
Bolt conversation store that uses your file system as a database.
This package is intended to be used in development to retain conversation state through restarts of your app.
Install
# Yarn
yarn add --dev @slack-wrench/bolt-storage-file
# npm
npm install --save-dev @slack-wrench/bolt-storage-file
Usage
import { App } from '@slack/bolt';
import FileStore from '@slack-wrench/bolt-storage-file';
const app = new App({ convoStore: new FileStore() });
Configuration
You can also pass a path for where you'd like the database to be stored in your file system.
new FileStore('/path/to/db');