This app uses Twilio to connect people with their senators and representatives.
You can read more about it here: http://www.ianww.com/blog/2016/06/15/call-your-congressperson-with-one-phone-number-1-844-usa-4522/
npm install
..env
file. For a dummy .env
, run cp example_dot_env .env
node cyc_entry.js
to start the server.By default, the app uses the configuration specified in config/default.js
.
You can set this configuration in your .env
file:
CONFIG=./config/my_config.js
Or you can override this on the command line:
CONFIG=./config/my_config.js node cyc_entry.js
Call Congress uses the caller's ZIP code in conjunction with the Civil Serivces API to connect the caller directly to their federal representatives.
There are several commands that make development easier
npm run start:watch
runs the server and restarts on file changesnpm run test:watch
runs tests on every file changenpm run tunnel
sets up a tunnel using localtunnel and prints the web address that Twilio can use to the consoleContributions welcomed and encouraged! Here's how you should contribute to this repository:
call-city-reps
master
branch.Copyright (C) 2016 by Ian Webster (http://www.ianww.com)
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.