ankitkanojia / Twilio-TextChat

Twilio Programmable Chat service provides easy for you to add chat features into your web and native mobile applications without building or scaling a real-time chat backend code. Twilio service has all the necessary APIs and features to integrate with your business logic to ensure you are in control.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Twilio Programmable Text Chat

This is an implementation of Twilio Programmable Chat using React.

# NOTE: Please read Twilio Pricing before use it, as Twilio Programmable Video service is not for free use.

Setting up the react app

Create React apps with no build configuration.

Twilio API Keys

  • TWILIO_ACCOUNT_SID
  • TWILIO_API_KEY
  • TWILIO_API_SECRET
  • TWILIO_CHAT_SERVICE_SID

Setting Up The Node.js Application

Update configuration keys in .env file

TWILIO_ACCOUNT_SID = "YOUR TWILIO_ACCOUNT_SID" 
TWILIO_API_KEY = "YOUR TWILIO_API_KEY" 
TWILIO_API_SECRET = "YOUR TWILIO_API_SECRET"
TWILIO_CHAT_SERVICE_SID = "YOUR TWILIO_CHAT_SERVICE_SID"

Install node_modules

npm install

Now you are ready! Run the application with

npm start or yarn start

Your application should start up at http://localhost:3000.

About

Twilio Programmable Chat service provides easy for you to add chat features into your web and native mobile applications without building or scaling a real-time chat backend code. Twilio service has all the necessary APIs and features to integrate with your business logic to ensure you are in control.

License:MIT License


Languages

Language:JavaScript 82.9%Language:HTML 9.4%Language:CSS 7.7%