• This repository has been archived on 16/Sep/2020
  • Stars
    star
    144
  • Rank 255,590 (Top 6 %)
  • Language
    JavaScript
  • License
    Other
  • Created over 8 years ago
  • Updated over 4 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

#teamchatviz

⚠️⚠️⚠️ DEPRECATED: The new home is now here

#teamchatviz

by moovel lab and moovel dev team

#teamchatviz enables you to explore how your Slack team works:

  • channel heartbeat
  • people land
  • channel land
  • frequent speakers
  • messages & reactions
  • emoji timeline

Client app is built with React and JSPM. Visualisations leverage react-vis and d3. Server is written in ES6+ using Koa 2 and Babel. PostgreSQL is used a database with the help of pg-promise.

Nota bene: #teamchatviz is not created by, affiliated with, or supported by Slack Technologies, Inc. Please comply with your applicable data protection and labour law regulations when using our tool.

Project Page

See the project page moovel.github.io/teamchatviz for more infos, screenshots and a screenrecording.

Online Demo

Online demo app under teamchatviz-demo.moovel.com (with fake Slack team data, generated with Faker.js).

Currently supported browsers: latest Chrome/Chromium, Firefox or Safari.

Running your own instance of #teamchatviz App

  1. Go to api.slack.com/apps/new and create a new app. Go to the App Credentials tab of the newly created app to get client id and client secret. Specify the following Redirect URI for your Slack App: http://<hostname of your server>/api/auth/slack/callback
  2. Create a Heroku instance of #teamchatviz using the Deploy to Heroku button below. Specify the choosen hostname, client id and client secret during the creation of the Heroku instance.
  3. Navigate to http://<hostname of your server> and press Add to Slack button. Grant all required permissions to the Slack app that you created on step #1.
  4. The data about your team will be loaded in the background and the visualizations will be available soon.

Run on Heroku

Deploy

Never heard of Heroku? Here's how to install it: https://youtu.be/8lzdCWoiDbY

Run with Docker

See docker image by Xqua

Development Setup

You need a recent Node JS version (4+) installed and JSPM 0.17 Beta (npm install jspm@beta -g).

  1. git clone [email protected]:moovel/teamchatviz.git and cd teamchatviz.
  2. npm install - install server npm dependencies.
  3. cd client && npm install && jspm install - install client dependencies.
  4. cd ...
  5. Create .env file with the following content:
PORT=3333
SLACK_CLIENT_ID="<client id of your slack app>"
SLACK_CLIENT_SECRET="<slack app secret>"
DATABASE_URL="<postgresql database URL e.g. postgres://teamchatviz:teamchatviz@localhost/teamchatviz>"
PUBLIC="false"
ANONYMIZE="false"
SESSION_SECRET="secret"

If PUBLIC === true the data loaded into the system will be public and will not require authentication via Slack. If ANONYMIZE === true the data loaded into the system will be replaced with the fake data using Faker.js. Anonymization will happen only on the initial data loading and before the data reaches the database.

If PUBLIC === true, Add to Slack button on the Main page is hidden and login is disabled. If you change the PUBLIC setting for an existing instance, the changes will apply only after a restart of the server.

  1. Create database as described in the next section and apply database migration by running npm run up.
  2. npm start - start the server.
  3. Open http://localhost:$PORT in your browser.

Create a PostgreSQL database

In order to create a database in PostgreSQL you need to start psql client. On Linux systems you can run sudo -u postgres psql for this. On OS X you can start it via the UI of Postgres.app.

Then you may run the following commands to create a user called teamchatviz with the password teamchatviz and a database called teamchatviz:

CREATE DATABASE teamchatviz;
CREATE ROLE teamchatviz WITH LOGIN CREATEDB PASSWORD 'teamchatviz';
ALTER USER teamchatviz VALID UNTIL 'infinity';
ALTER DATABASE teamchatviz OWNER TO teamchatviz;
GRANT ALL ON DATABASE teamchatviz TO teamchatviz;
\c teamchatviz
ALTER SCHEMA public OWNER TO teamchatviz;

Testing

npm test

Team

Acknowledgement

See the full list of dependencies in the client's package.json and server's package.json.

LICENSE

LGPLv2.1