Skip to content

update troubleshooting tip to restart, organize windows vs Linux/Mac #14

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@ We assume that before you begin, you will have [node.js and npm](http://www.node
* `TWILIO_AUTH_TOKEN` : Your Twilio "auth token" - it's your password for the Twilio API. This and the account SID (above) can be found [on the console](https://www.twilio.com/console).
* `TWILIO_PHONE_NUMBER` : A Twilio number that you own, that can be used for making calls and sending messages. You can find a list of phone numbers you control (and buy another one, if necessary) [in the console](https://www.twilio.com/console/phone-numbers/incoming).

## Mac and Linux Environment Variables

For Mac and Linux, environment variables can be set by opening a terminal window and typing the following three commands - replace all the characters after the `=` with values from your Twilio account:

export TWILIO_ACCOUNT_SID=ACXXXXXXXXX
Expand All @@ -18,6 +20,8 @@ For Mac and Linux, environment variables can be set by opening a terminal window

To make these changes persist for every new terminal (on OS X), you can edit the file `~/.bash_profile` to contain the three commands above. This will set these environment variables for every subsequent session. Once you have edited the file to contain these commands, run `source ~/.bash_profile` in the terminal to set up these variables.

## Windows Environment Variables

On Windows, the easiest way to set permanent environment variables (as of Windows 8) is using the `setx` command. Note that there is no `=`, just the key and value separated by a space:

setx TWILIO_ACCOUNT_SID 'ACXXXXXXXXX'
Expand All @@ -34,7 +38,7 @@ You will first need to install the application's dependencies. You can do this

Now, you should be able to launch the application. From your terminal, run `npm start`. This should launch your Express application on port 3000 - [visit that URL on your local host at http://localhost:3000](http://localhost:3000/). Enter your mobile number in the fields provided, and test both SMS text messages and phone calls being sent to the mobile number you provide.


** If your application responds with an "undefined" error after trying to start, first confirm that the variables are in the system with the steps for your OS [here](https://www.youtube.com/watch?v=tqWDiu8a4gc&list=PLqrz4nXepkz63z1y4-oHfZHWy11gSoAn0), or try restarting your local machine and attempting again.

If your phone receives both a call and text message, you're good to go!

Expand Down