Skip to content
This repository has been archived by the owner on Jan 11, 2024. It is now read-only.

Latest commit

 

History

History
26 lines (15 loc) · 838 Bytes

README.md

File metadata and controls

26 lines (15 loc) · 838 Bytes

Archived 1/11/24

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.

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.