Setup
Code is stored in a Github and linked to at the top of this documentation. You will need to have Node.js and Git installed to be able to clone the repository and to build and deploy Leopard.
Last updated
Code is stored in a Github and linked to at the top of this documentation. You will need to have Node.js and Git installed to be able to clone the repository and to build and deploy Leopard.
Last updated
Steps
Where
Description
Studio
Add the Extension Helper groovy script to Teneo Studio as either a resource or to the Global Scripts
Studio
In Teneo Studio you will want to define a number of global variables and pre-processing scripts
Clone Leopard
Operating System
git clone
https://github.com/jolzee/leopard-chat-ui-teneo
cd leopard-chat-ui-teneo
Operating System
You can control various build aspects of Leopard through build variables.
Run Leopard
Operating System
npm run serve
Build for Production
Operating System
npm run build
You will need to install node-gyp
globally. This is needed because some native node modules need to be compiled.
Only run this once Node.js is installed. The command below will take a while to complete but it only has to be run once.
The latest code is stored in GitHub
.
This command will inspect the dependencies in the project's package.json file and will download them locally.
If you are on a version of npm > 6.0.0 you should preferably install dependencies using:
To run a local version of Leopard for testing and development run the following.
The browser should automatically open to http://localhost:8080/ once compiled. You can change code in the project and the Website should automatically reload.
The following command will compile, compress and minify all the code for production. The resulting HTML, CSS and JS code in the /dist
folder can then be deployed to any web server.