A chat widget to embed on your website to interact with the abot. http://dalewebb.github.io/abot-widget
$ npm install
This is packaged together with webpack, you will need this to compile your changes.
$ npm install webpack -g
To build the widget, run the following command.
$ npm run build
This project uses Jasmine for unit tests, they are contained in the tests/
folder.
To run the tests, run the following command.
$ npm test
To see the widget in action, run
$ npm start
then navigate to http://localhost:8080 (you can change the port with $ npm config set abot-widget:port [port]
)
<html>
<head></head>
<body>
<script src="widget.js"></script>
<script>
AbotChat.init({
server: 'http://localhost:4200'//Point to the abot server
});
</script>
</body>
</html>