JavaScript Python CSS Shell HTML
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
backend
docs
frontend
.gitignore
.nvmrc
.travis.yml
CONTRIBUTING.md
LICENSE.md
README.md

README.md

Build Status

CallParty Logo

CallParty

CallParty is a FB Messenger bot to send calls to action for political issues, link to the specific reps to call, and updates on the issues that have been sent. To do this we’ve built an admin tool to input the calls to action, and segment messages to users based on the party or committee of their rep, and by the district the user lives in.

You can sign up for CallParty here https://www.facebook.com/CallPartyOrg/.

Learn more about CallParty by visiting our site!

–––

Contributing to CallParty and Open Source

To learn more about contributing to CallParty check out the contributing guide.

Running Your Local Instance of CallParty

Make sure to check out the local setup instructions for how to set up Call Party the first time. Below is a quickstart for users who already have Call Party set up on their machine.

  1. Open up 4 Terminal (or your preferred CLI) windows

  2. Start up MongoDB In your first window, start up your local MongoDB

mongod
  1. Start up Localtunnel

Your bot number will be the number from your Call Party test page used in the setup.

cd backend

./bash/local_tunnel.sh <bot_number>
  1. Start up backend server
cd backend

npm start
  1. Start up frontend server
cd frontend

npm start
  1. Navigate to http://localhost:8082/ to view the Call Party front end and to send messages to your test user

  2. Visit the webpage of your bot: https://www.facebook.com/CallingTestX-XXXXXXXXXXX/ (you will have this info from your setup)

Running Tests

To run the tests:

cd backend

npm test

Notes

Example app backend was based off of: https://github.com/mvaragnat/botkit-messenger-express-demo

Call Party Admin Docs