Inspiration
We want to advocate for a cleaner future by educating users about where they are getting their electricity from and to promote users to advocate for better energy sources for their region.
What it does
The webpage takes a text input from the user and matches the location to the closest region provided by the API to display where the user's energy is coming from. The API information is converted into a chart via chart.js and displayed along a table.
How we built it
We used the React framework and pulled data from an API and displayed it in a digestible format on a webpage using Chart.js.
Challenges we ran into
- We tried to hide our API key on a static website but we realized we could not do this.
- It was our first time using Chart.js, which was difficult to learn.
- We had some troubles with UI and UX.
- For some of us it was our first time using React.
- Deciding how we would encompass all of the locations in the API for the user to access
Accomplishments that we're proud of
- We are proud that we were able to figure out Chart.js in such a short amount of time and that we overcame the UI/UX challenges we faced.
- Additionally we learned how to Geocode and pull data from the API so that we did not need to hard code a drop down menu.
- Understand the importance of UI/UX design to encourage usability
What we learned
- We learned how to deploy a React webpage
- Color Schemes and fonts are extremely important to the viewing experience of a webpage
- We learned how to Geocode with an API to fetch longitude latitude based on searching incomplete addresses
- Displaying data as a PI chart using Chart.js React
- Implementing and formatting HTML tables with data being pulled from an API
What's next for Check Your Source
- We want to provide more accurate data from more regions, narrow it down to cities in particularly.
- We want to use the user location to fetch the information of local energy ministers or politicians in the area so that users can reach out the these members to advocate for better energy sourcing.
Project Github
https://github.com/SyndicateGit/CheckYourSource
Note
Please install node.js when you are checking through the zip file
run npm install
Log in or sign up for Devpost to join the conversation.