Twilio Webchat React App is an application that demonstrates a website chat widget built with Twilio's Conversations JS SDK, Twilio Paste Design library and Create React App.
Adds Twilio Serverless (Typescript) as a backend option similar to and based on the Express version.
The resulting react app is also placed in the serverless/assets directory so that the entire project may be hosted on a Twilio Serverless function.
Cosmetic tweak to the react app to show Twilio logo (or customer logo) by replacing the public/logo.png file
Note the Express server has been adjusted to use /api/ routes prefix for initWebchat and refreshToken to match the serverless implementation, the serverless implementation could also be changed to drop the api route if needed.
Adds Twilio Serverless (Typescript) as a backend option similar to and based on the Express version.
The resulting react app is also placed in the
serverless/assets
directory so that the entire project may be hosted on a Twilio Serverless function.Cosmetic tweak to the react app to show Twilio logo (or customer logo) by replacing the
public/logo.png
fileNote the Express server has been adjusted to use
/api/
routes prefix forinitWebchat
andrefreshToken
to match the serverless implementation, the serverless implementation could also be changed to drop theapi
route if needed.