Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/lelouchb/react-twilio-voice
Passing Custom Parameters to Twilio Client with Voice REST API
https://github.com/lelouchb/react-twilio-voice
express react twilio twilio-voice
Last synced: 23 days ago
JSON representation
Passing Custom Parameters to Twilio Client with Voice REST API
- Host: GitHub
- URL: https://github.com/lelouchb/react-twilio-voice
- Owner: lelouchB
- License: mit
- Created: 2020-11-26T10:05:42.000Z (almost 4 years ago)
- Default Branch: main
- Last Pushed: 2022-02-20T04:57:43.000Z (over 2 years ago)
- Last Synced: 2024-10-12T08:15:11.413Z (about 1 month ago)
- Topics: express, react, twilio, twilio-voice
- Language: JavaScript
- Homepage:
- Size: 230 KB
- Stars: 3
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Passing Custom Parameters to Twilio Client with Voice REST API
![UI](https://i.imgur.com/vptnUwi.jpg)## Running the project
To run the project you will need a [Twilio account](www.twilio.com/referral/JbKvV2) and a Twilio phone number that can send make voice calls. Gather your **Twilio Account SID** and **Auth Token** from the [Twilio console](https://www.twilio.com/console) and the phone number.
Clone the project, change into the directory and install the dependencies.
```bash
git clone https://github.com/lelouchB/react-twilio-voice.git
cd react-twilio-voice
cd client
npm install
cd ..
cd server
npm install
```Rename the `.env.example` file in `server` directory to `.env` and fill in your Twilio credentials and phone number.
Open the **ngrok** tunnel.
```bash
ngrok http 5500
```Copy paste the **Forwarding** address in `host` variable inside `server/index.js` file.
Start the Express server. Run the following command in project's root directory.
```bash
cd server
npm run dev
```Start the React app development server. Run the following command in project's root directory.
```bash
cd client
npm start
```
Open the app at [localhost:3000](http://localhost:3000).You can now use the form to make voice calls.