Skip to content

Latest commit

 

History

History
54 lines (37 loc) · 1.09 KB

README.md

File metadata and controls

54 lines (37 loc) · 1.09 KB

React Programmable Chat

This demo application was created as a supplement to a post on the Twilio blog.

Required Credentials

Setting Up The Application

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