This guide provides instructions on how to apply for and use API keys for POWERBACK's third-party services, including Stripe, ProPublica Congress API, and Google Civics.
This guide assumes you are following our Development Setup Guide.
-
Visit the Stripe website.
-
Sign up for a Stripe account if you don't already have one.
-
Log in to your Stripe dashboard.
-
Navigate to the API section in your dashboard.
-
Create a new API key and specify its permissions. Be sure to select payment processing as a required permissions.
-
Note down any the generated API keys for use in your POWERBACK environment. Keep these safe.
-
Open your POWERBACK project.
-
Edit
TabContents.tsx
in/client/src/pages/Main/screens/Celebrate/TabContents
. -
Replace the placeholder on Line 21 with your Stripe API test key.
-
Save the changes and restart your POWERBACK server to apply the new API key.
-
Visit the ProPublica Congress API website.
-
Sign up for a ProPublica account if required.
-
Request an API key from ProPublica for access to the Congress API. Follow the provided instructions to obtain your key.
-
Note down the generated API keys for use in your POWERBACK environment.
-
Refer to the ProPublica Congress API documentation.
-
Open your POWERBACK project.
-
Edit
constants.js
. -
Replace the
CONGRESS_KEY
andCONGRESS_ALTERNATE_KEY
placeholders with your ProPublica Congress API key(s). -
Save the changes and restart your POWERBACK server to apply the new API key(s).
-
Visit the Google Civics API website.
-
Sign in with your Google account or create one if you don't have an account.
-
Create a new project in the Google Developers Console. If you already have a project, you can use it.
-
In the project's dashboard, navigate to the "APIs & Services" and then "Library" section.
-
Search for "Google Civics Information API" and enable it for your project.
-
In the left sidebar, click on "Credentials."
-
Create a new API key by clicking on the "Create credentials" button and selecting "API key."
-
Note down the generated API key. You'll need this key to access the Google Civics API.
-
Open your POWERBACK project.
-
Edit
constants.js
. -
Replace the
KEY
placeholder under "CIVICS" with your Google Civics API key. -
Save the changes and restart your POWERBACK server to apply the new API key.
By following these instructions, you can apply for and use API keys for the third-party services needed to run POWERBACK. If you have any questions please reach out at [email protected].
Return to the Development Setup Guide.