Skip to content

DaleWebb/abot-widget

Repository files navigation

abot-widget

Build Status

A chat widget to embed on your website to interact with the abot. http://dalewebb.github.io/abot-widget

Install

$ npm install

Development

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

Testing

This project uses Jasmine for unit tests, they are contained in the tests/ folder.

To run the tests, run the following command.

$ npm test

Demo

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])

Usage

<html>
  <head></head>
  <body>
    <script src="widget.js"></script>
    <script>
      AbotChat.init({
        server: 'http://localhost:4200'//Point to the abot server
      });
    </script>
  </body>
</html>

About

A chat widget to embed on your website to interact with the abot.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published