Hey there! 👋
Welcome to RepRadar, the ultimate tool for staying informed about your local representatives and the latest Executive Orders! 🚀
🔍 What can I do for you?
• I can fetch the top 5 most recent Executive Orders straight from the Federal Register and keep you in the loop with current policies! 📰
• By entering your zip code, I’ll identify your local representatives with up-to-date info about them. Need to know who’s representing you? I’ve got you covered!
Whether I pull data directly from the database or fetch real-time info from external APIs, I make sure you always get the most relevant and accurate details. 🔄
Check me out and stay connected with your government—I’m here to make it easy! 💥
-
• Version Required: Ruby 3.2.2 • Installation: Install Ruby using a version manager like rbenv or rvm, or install directly from Ruby’s official site.
-
• Version Required: Rails 7.1.5.1 or later • Installation: Install Rails globally after installing Ruby:
gem install rails
-
• Version: Bundler is used to manage Ruby gems. • Installation:
gem install bundler
-
• Version: PostgreSQL 12.x.x (or the version you’re using) • Installation: You can install PostgreSQL by following the official installation guide.
psql --version
-
• Version: For testing. • Installation: Include rspec-rails gem in the Gemfile and run:
bundle install
-
bundle exec rspec -
• Version: Latest stable version of Postman
• Installation: Download from Postman. -
• Version: Latest version of Heroku CLI • Installation: Follow the installation instructions from Heroku’s website: LINK HERE
-
- Before running tests, ensure that all necessary gems are installed. Run:
bundle install
- Before running tests, ensure that all necessary gems are installed. Run:
-
- To run specific tests, use:
bundle exec rspec spec/requests/api/v1/executive_orders_request_spec.rb
- To run specific tests, use:
- Fetches all Executive Orders from the current administration.
- Retrieves the five most recent Executive Orders.
- Retrieves a specific Executive Order by document number.
- Allows users to save and unsave Executive Orders.
- Fetches representatives based on a given ZIP code.
- Queries representatives from external APIs or the database.
- Provides detailed representative information including party affiliation and contact details.
- GET
/api/v1/executive_orders- Retrieves a list of executive orders. - GET
/api/v1/executive_orders/recent- Fetches the five most recent executive orders. - GET
/api/v1/executive_orders/:document_number- Fetches details for a specific executive order. - POST
/api/v1/executive_orders_users- Saves an executive order for a user. - DELETE
/api/v1/executive_orders_users/destroy- Removes a saved executive order.
- GET
/api/v1/representatives/search?db=false&query=ZIP_CODE- Retrieves representatives based on ZIP code.
