KAUSHIK SARKARBlogs
Game Prompts

Game Suggestion App with Real-Time IGDB Polling & Dark Theme Magic

By Kaushik Sarkar · · 11 min read
Hero screenshot of the finished Game Suggestion App

The Game Suggestion App is a browser-based polling tool that allows users to create polls for game suggestions. It integrates with IGDB to fetch real-time game data, supports user voting, and displays live results. This tutorial walks you through building it with AI coding tools like ChatGPT, Claude, or Cursor using the full prompt from App Ideas (Florin Pop). You'll learn how to run the app locally, test its features, and deploy it for free.

You’ll work with HTML5 Canvas, JavaScript ES6+, CSS3, Fetch API, and IGDB API. The interface includes a dark theme with purple (#6366f1) and teal (#10b981) accents, responsive design, keyboard navigation, and local storage integration. The goal is to create a fully functional single-page app that works across devices.

What you need

  • A modern web browser
  • An AI coding tool (ChatGPT, Claude, Gemini, Cursor, Lovable, Bolt, or v0)
  • Access to IGDB API (free registration required)
  • Basic understanding of HTML, CSS, and JavaScript
  • Text editor for reviewing generated code
  • Web server or local development environment

The full prompt

Build GameSuggest - A browser-based game polling application that lets users create polls for game suggestions and vote on popular titles from IGDB

Tech stack: HTML5 Canvas, JavaScript ES6+, CSS3, Fetch API, IGDB API

- Users can create new game suggestion polls with custom titles and descriptions
- Real-time search functionality using IGDB API to find games by name
- Voting system where users can add games to polls from the IGDB database
- Live poll results showing top 10 voted games with visual ranking indicators
- Admin controls to restrict voting by genre or tag filters
- User authentication system to save and view previous polls
- Responsive design that works on mobile, tablet, and desktop devices
- Game cards with cover art, names, release dates, and vote counts
- Smooth animations for voting, loading states, and result updates
- Local storage integration for saving user preferences and recent searches
- Keyboard navigation support for accessibility compliance
- Dark/light mode toggle with system preference detection
- Poll expiration timer with visual countdown indicators
- Game detail modal showing additional information from IGDB
- Clean, modern interface with intuitive user flows

Design uses a dark theme with purple accents (#6366f1) and teal highlights (#10b981). Typography features sans-serif fonts with clear hierarchy. Layout uses card-based components with subtle shadows and rounded corners. Animations include smooth transitions, fade effects, and hover states for interactive elements.

Controls include search input with autocomplete, vote buttons, poll creation forms, and admin settings. Data flows through local state management with IGDB API integration for game searches. Responsive design uses CSS Grid and Flexbox layouts. Accessibility features include ARIA labels, keyboard navigation, and proper contrast ratios.

Output should be a single index.html file with embedded CSS and JavaScript that runs directly in browsers without build steps. Include clear instructions for obtaining IGDB API key and running locally.

1Set Up Your AI Coding Tool

Choose an AI coding assistant that supports full HTML/CSS/JS output. Tools like ChatGPT, Claude, Gemini, Cursor, Lovable, Bolt, and v0 all support this workflow.

  • Open your chosen AI tool in a browser
  • Paste the entire prompt from the page into the input field
  • Ensure you’re using the latest version of the tool for best compatibility

The prompt includes all tech stack requirements: HTML5 Canvas, JavaScript ES6+, CSS3, Fetch API, IGDB API. These should be reflected in the generated output.

Tip: If the output doesn’t match expectations, ask the AI to rewrite specific sections or add missing features.

AI coding assistant generating the Game Suggestion App code
AI coding assistant generating the Game Suggestion App code

Pro tip: Use the most recent version of your AI tool for best results with modern JavaScript and CSS features.

2Paste the Full Prompt into Your AI Tool

Here’s the exact prompt you should paste in your AI coding tool:

Build GameSuggest - A browser-based game polling application that lets users create polls for game suggestions and vote on popular titles from IGDB

Tech stack: HTML5 Canvas, JavaScript ES6+, CSS3, Fetch API, IGDB API

- Users can create new game suggestion polls with custom titles and descriptions
- Real-time search functionality using IGDB API to find games by name
- Voting system where users can add games to polls from the IGDB database
- Live poll results showing top 10 voted games with visual ranking indicators
- Admin controls to restrict voting by genre or tag filters
- User authentication system to save and view previous polls
- Responsive design that works on mobile, tablet, and desktop devices
- Game cards with cover art, names, release dates, and vote counts
- Smooth animations for voting, loading states, and result updates
- Local storage integration for saving user preferences and recent searches
- Keyboard navigation support for accessibility compliance
- Dark/light mode toggle with system preference detection
- Poll expiration timer with visual countdown indicators
- Game detail modal showing additional information from IGDB
- Clean, modern interface with intuitive user flows

Design uses a dark theme with purple accents (#6366f1) and teal highlights (#10b981). Typography features sans-serif fonts with clear hierarchy. Layout uses card-based components with subtle shadows and rounded corners. Animations include smooth transitions, fade effects, and hover states for interactive elements.

Controls include search input with autocomplete, vote buttons, poll creation forms, and admin settings. Data flows through local state management with IGDB API integration for game searches. Responsive design uses CSS Grid and Flexbox layouts. Accessibility features include ARIA labels, keyboard navigation, and proper contrast ratios.

Output should be a single index.html file with embedded CSS and JavaScript that runs directly in browsers without build steps. Include clear instructions for obtaining IGDB API key and running locally.

Wait for the AI to generate code. It may take a few moments depending on your tool.

Pro tip: If the AI skips parts of the prompt, explicitly ask it to include missing features like voting or local storage.

3Review and Save the Generated Output

Once you get a response from your AI coding tool, carefully review the generated HTML, CSS, and JavaScript. The output should be a single index.html file with embedded styles and scripts.

  • Copy the entire code into a new file named index.html
  • Open it in a browser to verify it runs correctly
  • Check that the layout is responsive and visually matches the dark theme
  • Ensure game cards display cover art, names, vote counts, and release dates

If parts of the prompt are missing (like voting or search), you can ask the AI to regenerate or fix those sections.

Tip: Use an editor like VS Code or Sublime Text to inspect code structure and make minor tweaks before testing.

Pro tip: Use a browser’s DevTools to inspect layout issues or JavaScript errors.

4Test Core Features of the App

Run your app locally and test all major features listed in the prompt:

  • Poll Creation: Create a new poll with title and description
  • Search Functionality: Search for games using IGDB API via autocomplete
  • Voting System: Vote on games and see live updates to vote counts
  • Results Display: View top 10 voted games with ranking indicators
  • Admin Controls: Filter voting by genre or tag (if implemented)
  • User Authentication: Save and view previous polls (if included)

Check for:

  • Smooth animations during voting and result updates
  • Keyboard accessibility
  • Responsive design on mobile, tablet, and desktop
  • Local storage for saving preferences

Tip: If search doesn’t work, verify the IGDB API key is correctly configured.

Game Suggestion App main gameplay view with HUD
Game Suggestion App main gameplay view with HUD

Pro tip: Test all user flows in different browsers to catch platform-specific issues.

5Fix Common Bugs and Add Missing Features

If you encounter issues during testing, use follow-up prompts to fix them:

  • "Fix the search bar so it filters IGDB results in real-time"
  • "Add a dark/light mode toggle that persists in local storage"
  • "Make voting buttons animate when clicked"
  • "Implement poll expiration timer with visual countdown"

Common problems include:

  • API key misconfiguration
  • Missing CSS animations
  • Local storage not persisting
  • Responsive layout issues on small screens

Use your AI tool to refine output based on these fixes.

Tip: If a feature doesn’t load, check browser console for errors and adjust the JavaScript accordingly.

Pro tip: Always test one feature at a time to isolate and resolve bugs quickly.

6Add IGDB API Integration

The app requires an IGDB API key to fetch game data. You must register for free access at the IGDB website.

Steps:

  • Visit the IGDB API documentation and sign up for a key
  • Add your key to the code in the fetch call or environment variables
  • Ensure the API is being called with correct parameters (game names, fields)

The prompt specifies using Fetch API for IGDB integration. If the AI didn’t include this, ask it to:

Add IGDB API integration using Fetch API to search games by name and display results in cards

Verify that game cover art, release dates, and vote counts load correctly.

Tip: Use a test key or placeholder data for development if API limits are an issue.

Pro tip: Test your API key directly in the browser console to ensure it’s valid.

7Optimize Performance and Accessibility

Review performance and accessibility features:

  • Performance: Ensure no heavy loops or large data loads that block UI
  • Accessibility: Add ARIA labels, keyboard navigation support, and contrast ratios for text
  • Animations: Use CSS transitions instead of JavaScript where possible
  • Responsive Design: Confirm layout works on all screen sizes using Flexbox/Grid

Fix any issues like:

  • Slow rendering of game cards
  • Poor contrast in dark mode
  • No keyboard focus indicators
  • Missing alt tags on images

Use tools like Lighthouse or browser DevTools to audit accessibility.

Tip: Use CSS variables for theme colors and transitions for consistent animations.

Pro tip: Run a Lighthouse audit to check performance, accessibility, and SEO.

8Deploy Your App for Free

Once the app is fully functional, deploy it using free hosting options:

GitHub Pages:

  • Push your code to a GitHub repo
  • Enable GitHub Pages in settings
  • Visit the provided URL

Netlify / Vercel:

  • Drag and drop index.html or connect your Git repo
  • Both platforms support static site deployment

Ensure all assets (images, scripts) are correctly linked. Test links locally and on deployed version.

Tip: Use a custom domain if desired, but start with the free subdomain for testing.

Pro tip: GitHub Pages is ideal for simple static apps without backend needs.

9Verify Deployment and Share

After deploying:

  • Visit the live URL to confirm everything works as expected
  • Test all features on mobile and desktop
  • Validate that search, voting, and local storage work correctly
  • Make sure animations and transitions are smooth

Once satisfied, share your app with others. You can also add a GitHub repo link or embed a demo for others to try.

The prompt above is from App Ideas by Florin Pop. It provides a rich set of features that make this project ideal for learning modern web development with AI tools.

Tip: Encourage users to experiment with additional features like tags, user avatars, or social sharing.

Pro tip: Test on different browsers and devices before sharing publicly.

Adapt it to your own brand

  • Change color scheme from dark theme to light mode by modifying CSS variables
  • Add more game genres or tags to the admin filtering options
  • Integrate with other APIs like Steam or GameFAQs for broader game data
  • Include user avatars and comment systems for social interaction
  • Add push notifications or email alerts when polls expire or get popular
  • Allow users to save favorite games in a personal library
  • Implement leaderboards or rankings based on total votes

Common mistakes and fixes

  • Not including the IGDB API key properly, leading to search failures
  • Ignoring responsive design, causing layout issues on mobile devices
  • Overlooking accessibility features like ARIA labels and keyboard navigation
  • Using inline styles instead of CSS classes, making code harder to maintain
  • Failing to test animations and transitions in older browsers
  • Not testing with local storage or caching for user preferences

Frequently asked questions

Do I need a backend server to run this app?

No. The app is designed to run entirely in the browser using Fetch API and local storage. All data handling happens client-side.

How do I get an IGDB API key?

Visit the IGDB website, sign up for a free account, and generate your API key under the developer settings.

What AI tools work best for this project?

Tools like ChatGPT, Claude, Gemini, Cursor, Lovable, Bolt, and v0 all support generating full HTML/CSS/JS apps with embedded code.

Can I run this app offline?

Yes. With local storage integration, users can save preferences and recent searches for offline access.

Final thoughts

You’ve now built a fully functional Game Suggestion App using AI tools and the prompt from App Ideas (Florin Pop). This project demonstrates how to build interactive web apps with real-time data, responsive layouts, and modern UI patterns. The app supports voting, search, and local storage, all essential features for an engaging user experience.

Copy the full prompt above and try building your own version. Experiment with features like user avatars, tags, or leaderboards to personalize the app further.

Originally published on PromptGrabber.com — find thousands more AI prompts there.