Inspiration
We were inspired by the need for transparency and accessibility in the legislative process. With so many bills being passed and debated, it's easy for citizens to feel overwhelmed or disconnected. Congress.AI aims to simplify the process, allowing users to easily track bills and see how their representatives are voting on key issues. We wanted to build a platform that empowers citizens by giving them easy access to this important information.
What it does
Congress.AI allows users to search for and track bills currently under consideration in Congress. Users can view a list of bills, see summaries of each bill, and learn how representatives have voted. The platform provides real-time insights into the "vibe" of a representative, based on their voting patterns, helping users understand their positions more clearly.
How we built it
We built Congress.AI using a full-stack approach:
- Frontend: We used React to create a dynamic user interface where users can search for bills and representatives.
- Backend: The backend is powered by Express.js and Mongoose, which connects to a MongoDB Atlas database. This stores the data about bills and representatives, which is then served to the frontend via API calls.
- Database: We utilized MongoDB Atlas to store and retrieve information on bills, representatives, and their voting history.
- API Integration: The frontend makes API calls to the backend to retrieve data dynamically, ensuring a smooth user experience.
- AWS: We used AWS for hosting and managing our backend services, ensuring scalability, reliability, and seamless deployment of our application.
Challenges we ran into
- CORS Issues: We initially struggled with CORS blocking requests between the frontend and backend. We had to configure CORS on the backend to allow requests from our frontend.
- MongoDB Authentication: Connecting the backend to MongoDB Atlas presented authentication issues, which we resolved by correctly configuring environment variables and authentication details.
- Real-Time Data: Ensuring that the data displayed was real-time and that error handling for loading and fetching issues was robust.
Accomplishments that we're proud of
We are proud of successfully connecting a full-stack application with React, Express.js, MongoDB, and AWS. The seamless integration of the frontend with the backend to provide a smooth user experience is a big win for us. We're also proud of overcoming several technical challenges related to authentication, CORS, and handling asynchronous data fetching.
What we learned
This project helped us:
- Deepen our understanding of full-stack development with React, Node.js, MongoDB, and AWS.
- Gain experience working with MongoDB Atlas and managing authentication and connection issues.
- Improve our ability to troubleshoot and handle issues such as CORS and network request handling.
- Understand the benefits of deploying applications using AWS services for scalability and stability.
What's next for Congress.AI
We plan to expand Congress.AI by:
- Adding more detailed analytics on representatives' voting patterns and providing insights on how they compare to their peers.
- Integrating real-time updates so users can see how bills are progressing in Congress in real time.
- Providing notifications and alerts to users when significant legislative changes occur.
- Exploring more AWS services to further enhance the scalability and performance of our platform.
Built With
- amazon-web-services
- javascript
- mongodb
- mongodb-atlas-**version-control**:-git
- node.js
- python
- react
- useeffect)-**deployment**:-aws
Log in or sign up for Devpost to join the conversation.