- Sign up for PubNub
- Sign up for Amazon AWS
- Run ChatEngine Setup
- Get AWS
access
andsecret
keys for Polly guide here - Go to the PubNub Functions event handlers in the admin portal
- Add an
On Request
event handler (+ tab) and pastepolly-pfunc.js
contents into the editor - To the left of the editor, click
MY SECRETS
and addAWS_access_key
andAWS_access_key
- Click
COPY URL
and paste it inapp.js
aspollyFunctionURI
variable - Copy the
Publish
andSubscribe
keys for the app from the admin portal - Paste them at the top of
app.js
- Install https://www.npmjs.com/package/http-server or something similar and boot a new server from the root folder of this project
http-server
There is a Polly TTS button next to every chat bubble!
Uncomment under the UNCOMMENT
lines in app.js
to see ChatEngine features like
- Chat History
- Typing Indicator Plugin
- Markdown Plugin