This is a submission for the Amazon Q Developer "Quack The Code" Challenge: Exploring the Possibilities
๐ง What I Built
I built AI Medicine Analyzer โ a web app that simplifies how people understand their medications by letting them ask natural-language questions and get instant AI-powered answers.
This project represents an unexpected and innovative use of Amazon Q Developer. While Amazon Q is typically used for improving productivity during development, I used it to rapidly ideate, build, and enhance an AI-powered health tech tool. Itโs a practical healthcare utility powered by modern web tech and LLMs, demonstrating that Amazon Q can be a catalyst for meaningful, real-world innovation โ even in domains like digital medicine and patient education.
๐ฅ Demo
You can search any medicine name (e.g., "Paracetamol"), and the app will fetch structured data and allow follow-up questions like:
- โWhat are the side effects?โ
- โIs it safe for pregnant women?โ
- โCan it be taken with Ibuprofen?โ
Here are the screenshots of the chat interface:
๐ป Code Repository
๐ GitHub Repo
The app is built with:
- React + Vite
- Framer Motion
- Tailwind CSS
- Googleโs Generative AI API
- Amazon Q Developer (CLI & VS Code Extension)
โ๏ธ How I Used Amazon Q Developer
I used the Amazon Q Developer VS Code extension extensively throughout development. Here's how it helped at every stage:
๐ Rapid Component Generation
Amazon Q helped scaffold my React app components quickly โ from form UIs to API wrappers. This saved a lot of boilerplate time and let me focus on core functionality.
๐ก Tip: When generating boilerplate or reusable code, be specific with your prompt. For example:
"Create a React component with a Tailwind-styled search bar and result list."
๐ง Real-time Debugging and Optimization
I leveraged Q to inspect confusing bugs, async issues, and even logic errors in the quiz module. It understood my code context inside VS Code and guided me to the fix instantly.
๐ก Tip: Use inline Q chat on specific functions or files โ it's smarter than just copy-pasting errors.
โจ Code Refactoring & Enhancements
Amazon Q suggested optimized implementations for custom hooks, modularized my data-fetching logic, and offered more performant code patterns โ helping me clean up spaghetti code.
๐ก Tip: Ask Q to refactor messy code blocks. Example:
"Refactor this useEffect with better async pattern and error handling."
๐ Learning Use Case
Amazon Q felt like pairing with a senior developer. I asked it UX-related questions too โ like improving the quiz result interface โ and it gave both logic suggestions and UI advice.
๐ก Tip: Donโt limit Q to โjust codeโ โ use it to ask architectural, UX, or even API strategy questions.
๐ ๏ธ CLI + IDE Combo Power
I also tried the Amazon Q CLI in terminal for exploring available commands and streamlining workflows. It was handy when working outside the IDE or reviewing repo history.
๐ฏ What's Next & Final Thoughts
Working on this project with Amazon Q Developer has been a super productive and genuinely fun experience. It felt like having an AI pair programmer who understands not only your code but also your intent.
I'm excited to take AI Medicine Analyzer to the next level by expanding it into:
- Prescription image analysis
- X-ray and radiology image understanding
- Plant disease identification using image input
- And even more domain-specific AI models
This challenge was more than just a submission โ it sparked a product vision I genuinely want to build out further.
๐ฅ Team
This was a solo submission by me, @sumitkcs.
Top comments (0)