GitXplorerGitXplorer
n

clicktocongress-node

public
1 stars
2 forks
0 issues

Commits

List of commits on branch master.
Unverified
b57fd2694f0675a8d7aa543fd56ded32f8b1e9e5

rename package

committed 8 years ago
Unverified
49ed25c27e53a52f4a4f81d9a8a5e35713fbfecb

clean up

committed 8 years ago
Unverified
f7f007b3527b99d1229f4e8480555f2ee0bf3252

move envvars out of request

committed 8 years ago
Unverified
9e6d67fa09313d4ff390488d837cfe52137e1a54

400 if the address param isn't included

committed 8 years ago
Unverified
89768b4a0619c03bb34f5186447246cc362bc6e0

add 5s timeout for requests to google civics

committed 8 years ago
Unverified
e9445da76069596dd56815536883e4cd878c4122

add prefix and take out scheme

committed 8 years ago

README

The README file for this repository.

click to congress (node)

This is a node port of the click to congress elixir api.

development

  • $ git clone https://github.com/nypublicradio/click-to-congress this repository
  • `$ cd click-to-congress
  • $ npm install
  • $ cp .env.sample .env.

Add your twilio credentials to your freshly copied .env file.

To open up your local server to the incoming Twilio webhook (which actually connects the call), you can use a tool like ngrok to open up a local webserver to the world.

Once you've opened up a local address, update your .env accordingly:

SCHEME_FOR_TWILIO=http
HOST_FOR_TWILIO=<your ngrok host>

Then just $ node index.js and you're on your way.

testing

You'll need mocha install globally with $ npm install -g mocha.

Run the tests with npm test.