0.0.2 • Published 1 year ago

hss_webchat v0.0.2

Weekly downloads
-
License
MIT
Repository
-
Last release
1 year ago

SDK - WebChat

Get Started

At first, enter into sdk/WebChat folder, and then type the followed commands:

  1. Open a new terminal and type npm run start:watch to debug.

  2. Open a new terminal and type npm run start:serve to boot a http server. The default uri is http://localhost:3100

  3. Open a new terminal and type npm run start:mock to boot a mock server. The mock data is placed in sdk/WebChat/mock/db.json

Environment Variables

Local Environment, create file .env.developement.local that content as below and put it in sdk/WebChat/

ENDPOINT=http://localhost:8080
HUB_API_SERVICE=https://api-prod-hss.metadlw.com/hub/chat

Online Environment, create file .env.production.local that content as below and put it in sdk/WebChat/

HUB_API_SERVICE=https://api-prod-hss.metadlw.com/hub/chat