Leopard Chat Client
  • Quick Start
  • Screenshots
  • Setup
    • Extension Helper
    • Context Variables
      • Greeting Message
      • Channel
      • User's Time Zone
      • Location Context Parameters
    • Build Variables
  • Content Styling
    • CSS Styles
    • Icons
    • Markdown & HTML
  • Components Simple Syntax
  • Components
    • Answer Borders
    • Audio Player
    • Auto Open Leopard with Link
    • Alerts
    • Buttons and Lists
    • Card
    • Response Icons
    • Date & Time Pickers
    • Emergency Button
    • Expensive Operations
    • Field Masks
    • Chat Field Types (Email, Password, Location, Upload)
    • Forms
      • Feedback Form
      • Custom Forms
        • Example Config
        • Postback Object
        • Button Object
        • Field Types
        • Style Object
        • Icons Object
        • Masks
        • Validation
    • Google Map
    • Help Text
    • HTML Modal
    • Hyperlinks
    • Images
      • Image
      • Image Carousel
    • Tables
      • Tables - Simple
      • Tables - Advanced
    • Theme Change
    • Toasts
    • Language Auto Switch
    • Minimize Chat after Delay
    • Multiple Components - Same Response
    • Modal Size & Positioning
    • Open Long Response in Modal
    • Print Icon
    • Prompt Trigger Polling
    • Splitting Answers - Chunks
    • Video Player
  • Administration Area
    • Solution Configuration
    • Demo Mode - iFrames & URLs
    • ASR and TTS
  • Integrations
    • Logging / Reporting
    • Social Authentication
    • Live Chat
  • Embedding / Production
Powered by GitBook
On this page
  • Windows Users
  • Source Code
  • Clone Repository
  • Install Dependencies
  • Run Locally in Development Mode
  • Build for Production

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.

PreviousScreenshotsNextExtension Helper

Last updated 4 years ago

Steps

Where

Description

Studio

Studio

In Teneo Studio you will want to define a number of global variables and pre-processing scripts

Install Prerequisites

Operating System

Clone Leopard

Operating System

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

The following tools need to be installed before you clone the code and try and build Leopard:

Tool

npm install -g @vue/cli

Windows Users

You will need to install node-gyp globally. This is needed because some native node modules need to be compiled.

Start PowerShell as Administrator and run:

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.

npm install --global windows-build-tools

Source Code

The latest code is stored in .

Clone Repository

git clone https://github.com/jolzee/leopard-chat-ui-teneo leopard
cd leopard

Install Dependencies

This command will inspect the dependencies in the project's package.json file and will download them locally.

npm install

If you are on a version of npm > 6.0.0 you should preferably install dependencies using:

npm ci

Run Locally in Development Mode

To run a local version of Leopard for testing and development run the following.

npm run serve

Build for Production

The following command will compile, compress and minify all the code for production. The resulting HTML, CSS and JS code in the /distfolder can then be deployed to any web server.

npm run build

Add the groovy script to Teneo Studio as either a resource or to the Global Scripts

, ,

git clone

.js

The browser should automatically open to once compiled. You can change code in the project and the Website should automatically reload.

http://localhost:8080/
Extension Helper
Extension Helper
Global Variables & Pre-processing Scripts
Git
Node.js
Vue CLI
https://github.com/jolzee/leopard-chat-ui-teneo
Build Variables
Git
https://git-scm.com/downloads
Node
https://nodejs.org/en/download/
Vue CLI
GitHub
GitHub - jolzee/leopard-chat-ui-teneo: Leopard Chat UI - A Teneo Chat Client based on Vue and VuetifyGitHub
Logo