Built a Football Knowledge Share App with Amazon Q
I created a football knowledge share app with Amazon Q The AI Companion for you.It was surprisingly fast and efficient
Published Oct 8, 2024
I love football and I am passionate about it. I support Manchester United we might not be performing right now but there is false information spread out there about my club and to be fair other clubs too.
I set out to build a fact-checking football knowledge share app that aids in providing accurate information using Amazon Q your friendly AI Companion.
- You need an IDE with the Amazon Q Developer plugin
- Follow this link on how to set up in VSCODE : https://aws.amazon.com/q/developer/
First of all, I created a new directory and then created a file called
footballknowledgeshare.py
. Navigated to Amazon Q chat on the sidebar of the editor. I typed the following:Here is how the app will work:
Amazon Q generated the following Code:
Point to note is that not all suggestions will be the same as mine. The answers are random.Throughout the process you can ask for more information if anything is not clear. ,Back to the code it actuall works and you can add facts about the world of football.
There are several leagues in Football but my main focus was the top Five Leagues in Europe for a starter. But as you can see there is no specific area that helps you choose your preferred football league in Europe.
So i went back to Amazon Q and prompted a new task
Q responded with a modified version of the
FootballKnowledgShare
class. I then chose the option to replace the previous code. This is the new version:Now we have the leagues there as you can see below:
Perfect. Now how can we improve the app more. There are no pre-defined facts and we want the user to find some facts before adding more.
I wanted to improve it so that the user has a better experience. For this I again right-clicked then selected
Amazon Q
, and then i prompted it with the following:And boom Amazon Q did not dissapoint. It added some predefined facts in the code. At least my team Manchester United is mentioned by an AI Companion.
This is how it looks like:
Ofcourse there is more you can add to this application like Player details and Facts on each playing seasons of the leagues and more. I had much fun building an app on Football using Amazon Q
I also had fun experimenting to see how Amazon Q Developer could help me build my own Football Knowledge share app.
If you want to learn more, check out the Amazon Q Developer Dev Centre which contains lots of resources to help get you started. You can also get more Amazon Q Developer related content by checking out the dedicated Amazon Q space.