Track your representatives. Hold them accountable to your vote.
This project allows users to find their local congressional representatives, analyze voting records/statements, & generate AI-based summaries using Google Gemini.
- Fetch local representatives by zipcode, identifying congressional districts & legislators via the Geocodio API
- Retrieve sponsored legislation & bill details for each representative or senator using the Congress.gov API
- Summarize political content using the Gemini API for quick, AI-generated overviews of bills or statements
- Store representative and bill data locally with SQLite and SQLAlchemy to enable caching and reduce API calls
- React frontend integrated with the Flask API for real-time display of legislative activity and summaries
- clone the repo
git clone https://github.com/your-username/track-your-reps.git
cd reptracker/backend- Create local environment
cd backend
python -m venv venv
source venv/bin/activate # macOS/Linux
venv\Scripts\activate # Windows
- Install dependencies
pip install -r requirements.txt
- To run the app, you must put the following in a
.envfile (Note: verify it's ignored in the .gitignore file):
GEOCODIO_API_KEY=api_key_here
GEMINI_API_KEY=api_key_here
CONGRESS_API_KEY=api_key_here
- Run the app
python app.py
- Navigate to frontend directory
cd ../frontend
- Install frontend dependencies
npm install
- Start the server
npm run dev