Integration a website in-page chat and slack platform. Slack channel conversations on your own site.
- Clone the repo:
git clone https://github.com/diglabby/chat-widget-for-slack.git
-
Install latest Node
-
install dependencies
npm install
- serve with hot reload at localhost:8080
npm run dev
- build for production with minification latest build will appear in /dist directory
npm run build
- build for production and view the bundle analyzer report
npm run build --report
- run unit tests
npm run unit
- run e2e tests
npm run e2e
- run all tests
npm test
How to deploy this on a live system
- Download latest build
- Copy arhive to your site root directory and unpack;
- add line
<script src="slackChatWidget/slackWidgetLoader.js"></script>
to
<head></head>
section of target page
-
copy slackChatWidget folder to the root directory
-
add a slack bot token inside file "slackChatWidget/token.key"
-
add a slack channel inside config.js.
-
for doing this step use, for example, "C4YT2A35L" string from the URL "https://********.slack.com/messages/C4YT2A35L" (but your channel)
channel: "*******"
- inside config.js you have all editable widget parameters.
- WEBPACK - Dependency Management
- it.falanster.by
See also the list of contributors who participated in this project.
This project is licensed under the MIT License - see the LICENSE.md file for details
- Thanks to
https://github.com/jackmoore/autosize
- autosize plugin