This demo application was created as a supplement to a post on the Twilio blog.
- Account SID: Twilio Console.
- API Key & Secret: Twilio Console – API Keys.
- Chat Service SID: Twilio Console – Chat Dashboard.
Clone the repository:
git clone https://github.com/kevinthompson/react-programmable-chat.git
Create your .env
file:
cd react-programmable-chat
cp .env.sample .env
Define your environment variables:
TWILIO_ACCOUNT_SID=
TWILIO_API_KEY=
TWILIO_API_SECRET=
TWILIO_CHAT_SERVICE_SID=
Install application dependencies:
npm install
Start the token server in one terminal instance:
node server.js
Start the React application build process in another terminal instance:
npm start