@slack-wrench/bolt-storage-file

Test bolt db using a local file system.

Usage no npm install needed!

<script type="module">
  import slackWrenchBoltStorageFile from 'https://cdn.skypack.dev/@slack-wrench/bolt-storage-file';
</script>

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');