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/.
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.
Open up 4 Terminal (or your preferred CLI) windows
Start up MongoDB In your first window, start up your local MongoDB
- 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>
- Start up backend server
cd backend npm start
- Start up frontend server
cd frontend npm start
Navigate to http://localhost:8082/ to view the Call Party front end and to send messages to your test user
Visit the webpage of your bot: https://www.facebook.com/CallingTestX-XXXXXXXXXXX/ (you will have this info from your setup)
To run the tests:
cd backend npm test
Example app backend was based off of: https://github.com/mvaragnat/botkit-messenger-express-demo