Skip to content

Latest commit

 

History

History
120 lines (95 loc) · 2.74 KB

File metadata and controls

120 lines (95 loc) · 2.74 KB

🚀 Quick Start Guide

How to Run the Project

Method 1: Local File (Recommended for testing)

  1. Navigate to the game-generator folder
  2. Double-click index.html to open in your browser

Method 2: Local Server (Recommended for development)

Using Python:

cd game-generator
# Python 3
python -m http.server 8000
# Then visit: http://localhost:8000

Using Node.js (http-server):

cd game-generator
npx http-server -p 8000
# Then visit: http://localhost:8000

Using PHP:

cd game-generator
php -S localhost:8000
# Then visit: http://localhost:8000

Method 3: VS Code Live Server

  1. Install "Live Server" extension in VS Code
  2. Right-click index.html
  3. Select "Open with Live Server"

Testing Checklist

Basic Functionality

  • Page loads without errors
  • Language switcher works (5 languages)
  • Theme selector updates (8 themes)
  • Difficulty buttons toggle correctly
  • Word count slider adjusts value
  • Generate button creates word list
  • Copy button copies to clipboard
  • Download button downloads .txt file

Language Testing

  • English (en) - Default
  • 中文 (zh) - Chinese
  • 日本語 (ja) - Japanese
  • 한국어 (ko) - Korean
  • Español (es) - Spanish

Theme Testing

  • Animals
  • Sports
  • Movies
  • Food
  • Technology
  • Music
  • Countries
  • Colors

Responsive Testing

  • Mobile (< 640px)
  • Tablet (640px - 1024px)
  • Desktop (> 1024px)

Common Issues & Solutions

Issue: Translations not loading

Solution: Make sure you're running a local server (not just opening the file directly). CORS policy may block fetch requests for file:// protocol.

Issue: Clipboard copy not working

Solution:

  • Use HTTPS or localhost
  • Modern browsers require secure context for Clipboard API
  • Fallback method should work in most cases

Issue: Styles not applied

Solution:

  • Check TailwindCSS CDN is loading
  • Clear browser cache
  • Check browser console for errors

Next Steps

After testing basic functionality:

  1. ✅ Add SEO content sections
  2. ✅ Optimize animations and transitions
  3. ✅ Add more interactive features
  4. ✅ Deploy to hosting platform

Deployment Options

Free Hosting Platforms

  • Netlify: Drag & drop deployment
  • Vercel: Git integration
  • GitHub Pages: Version control + hosting
  • Cloudflare Pages: Fast CDN

Quick Deploy to Netlify

  1. Go to https://app.netlify.com/drop
  2. Drag the game-generator folder
  3. Done! Your site is live

Support

For issues or questions:

  • Check browser console for errors
  • Ensure all files are in correct locations
  • Test with different browsers
  • Check network tab for failed requests

Happy Generating! 🎮