GitXplorerGitXplorer
n

clicktocongress-node

public
1 stars
2 forks
0 issues

Commits

List of commits on branch master.
Unverified
a3f0706d005505b390a962d9b503b3d82754ca28

give the results an id

committed 8 years ago
Unverified
d339e310d299fe020fb0c3854aa66220e024752e

adds divisionId to payload

committed 8 years ago
Unverified
bcf5b219307c0bb55931873f6dfb2c0a02bd5042

fix up url provided to twilio

committed 8 years ago
Unverified
08789581f3e7fa24bb013a995e489f3fd22079d2

semicolon

committed 8 years ago
Unverified
6542b52bf476508c464b73e74392192fd0451b6c

adds timeout options to test

committed 8 years ago
Unverified
3a09c56e5d8bc3af2bec5be0c218cf1eb9a59712

update call arg to include versioned api path

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.