Webchat plugin/widget
Documentation Links
Setup
Install node dependencies
npm install
Run webpack to generate transpiled javascript
## From Makefile# build oncemake build# build and watch for file changes.make watch## Using webpack directly# From project's local webpack dependency with npm installednpx webpack# From project's local webpack dependency with npm installed, watch files and rebuildnpx webpack --clientid=1 --watch# build war filenpx webpack --clientid=1 --war# update api files (can be used in conjunction with watch)npx webpack --updateApi# From a global webpack installwebpack
To install npx, run npm install -g npx
, however it comes standard with newer versions of node.
Debugging
The distributable script (which ultimately includes the other necessary scripts) will be transpiled and embedded in this sample html page open this file in your browser. This should be set up with an express server in the near future for better debugging
Server
Located in ./server/*
are files relating to a local express server that can server webchat configurations from a static json file. This is useful for when C1 servies (data storage and file upload) are not running. It allows us to mimic some necessary functionality of the Java api layer.