twilio / twilio-webchat-react-app

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.
MIT License
64 stars 71 forks source link

Add serverless backend #30

Open chaosloth opened 1 year ago

chaosloth commented 1 year ago

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.

mkuklis commented 1 year ago

@chaosloth this is a fantastic approach. Any chance this will be merged?

sonarcloud[bot] commented 1 year ago

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

No Coverage information No Coverage information
No Duplication information No Duplication information