Skip to content
/ hub Public
forked from BrandNewCongress/hub

Brand New Congress API/data hub. Also handles scheduled tasks to manage BNC data in other services.

Notifications You must be signed in to change notification settings

tones/hub

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Brand New Congress API

This serves as the API that BNC web properties access for data. Currently being used by https://brandnewcongness.org, which is hosted on SiteTheory.

Getting Started for Developers

  1. Install Node
  2. Clone this repository
  3. Run npm install
  4. Run npm run dev
  5. Send requests to http://localhost:8080 to test different APi endpoints
  6. Run npm run lint to make sure your coding style is compliant.

External services

The website interacts with some external APIs. Instructions for how to test this stuff in dev are below:

Nationbuilder

The API uses Nationbuilder as its backing CRM. This is where it posts signups to and event data to. To test out code that hits Nationbuilder, you are free to use our development sandbox (the API token for which is in the .env file). You can log in to the admin interface with username [email protected] and password abc123456.

Mailgun

The API uses Mailgun to send emails. In dev, we use a sandbox account that requires you to be added as a verified recipient. Request permission from @saikat in Slack to test emails.

Airtable

The API uses Airtable to track candidates and nominations. There is a dev airtable user set up on a test database with username [email protected] and password ~.3XYY+ocnA7Rr1/f38ZKLNsPGo8L'. Use that to login to airtable to check out the test database and see Airtable API docs here

Maestro

How to contribute

Read the overview of how to contribute to BNC tech projects

About

Brand New Congress API/data hub. Also handles scheduled tasks to manage BNC data in other services.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 97.3%
  • HTML 2.7%