0.0.2 • Published 1 year ago
hss_webchat v0.0.2
SDK - WebChat
Get Started
At first, enter into sdk/WebChat folder, and then type the followed commands:
Open a new terminal and type
npm run start:watch
to debug.Open a new terminal and type
npm run start:serve
to boot a http server. The default uri ishttp://localhost:3100
Open a new terminal and type
npm run start:mock
to boot a mock server. The mock data is placed insdk/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