slack_history_keeper
An application that scrapes Slack chat and saves history.
Requirements
- Have sass installed. Can also be sassc. Just make sure to configure the transformer.
- Declare an environment variable called
SLACK_TOKEN
with a string value of your Slack Api token. - Declare an environment variable called
SLACK_DB_URI
with the URI of your mongo database that will store the messages.
Usage
- To get all dependencies, type
dart tool/grind.dart get
- (Optional) To upgrade the project's dependencies, type
dart tool/grind.dart upgrade
- To start the backend,
cd backend/
anddart bin/main.dart
. This fetches and prints chat logs of all channels associated with the slack token provided. It also starts a REST Api exposing some end points used by the frontend. - To start the front end, in another terminal,
cd frontend/
andpub serve
. - You can then access the app via Dartium @
http://localhost:8080
or with Chrome (but it'll take longer to compile Dart code to JS) to the same address.