cooking-game-pwa

๐Ÿณ Cooking Game PWA

An addictive endless cooking game Progressive Web App (PWA) optimized for mobile devices. Prepare delicious dishes, serve customers, and climb the leaderboard in this fast-paced culinary challenge!

Cooking Game Preview

โœจ Features

๐Ÿš€ Live Demo

Play the game online: https://devjfac1.github.io/cooking-game-pwa/

๐Ÿ› ๏ธ Tech Stack

๐Ÿ“‹ Prerequisites

๐Ÿ”ง Installation

  1. Clone the repository
    git clone https://github.com/devjfac1/cooking-game-pwa.git
    cd cooking-game-pwa
    
  2. Install dependencies
    npm install
    
  3. Start development server
    npm start
    
  4. Open your browser Navigate to http://localhost:3000

๐ŸŽฏ Usage

Local Development

# Start development server
npm start

# Build for production
npm run build

# Serve production build locally
npm run pwa-install

Game Controls

PWA Installation

  1. Open the app in a supported browser (Chrome, Edge, Safari)
  2. Click โ€œAdd to Home Screenโ€ or โ€œInstall Appโ€
  3. Launch from your home screen for full-screen experience

๐Ÿš€ Deployment

GitHub Pages (Automated)

# Deploy to GitHub Pages
npm run deploy

Manual Deployment

  1. Build the project: npm run build
  2. Copy build/* to your hosting platform
  3. Ensure all asset paths are relative

Environment Setup

๐Ÿ“ Project Structure

cooking-game-pwa/
โ”œโ”€โ”€ public/                 # Static assets
โ”‚   โ”œโ”€โ”€ index.html         # Main HTML template
โ”‚   โ”œโ”€โ”€ manifest.json      # PWA manifest
โ”‚   โ””โ”€โ”€ sw.js             # Service worker
โ”œโ”€โ”€ src/
โ”‚   โ”œโ”€โ”€ components/        # React components
โ”‚   โ”‚   โ”œโ”€โ”€ common/       # Shared components
โ”‚   โ”‚   โ””โ”€โ”€ game/         # Game-specific components
โ”‚   โ”œโ”€โ”€ redux/            # State management
โ”‚   โ”‚   โ”œโ”€โ”€ store.js      # Redux store configuration
โ”‚   โ”‚   โ””โ”€โ”€ reducers/     # State reducers
โ”‚   โ”œโ”€โ”€ styles/           # Global styles
โ”‚   โ”œโ”€โ”€ App.js            # Main app component
โ”‚   โ””โ”€โ”€ index.js          # App entry point
โ”œโ”€โ”€ docs/                 # Documentation
โ””โ”€โ”€ package.json          # Project configuration

๐ŸŽจ Customization

Themes and Styling

Game Mechanics

PWA Configuration

๐Ÿค Contributing

  1. Fork the repository
  2. Create a feature branch: git checkout -b feature/amazing-feature
  3. Commit changes: git commit -m 'Add amazing feature'
  4. Push to branch: git push origin feature/amazing-feature
  5. Open a Pull Request

Development Guidelines

๐Ÿ“Š Performance

๐Ÿ› Troubleshooting

Common Issues

404 on GitHub Pages

PWA Not Installing

Performance Issues

๐Ÿ“„ License

This project is licensed under the MIT License - see the LICENSE file for details.

๐Ÿ™ Acknowledgments

๐Ÿ“ž Support


Enjoy cooking! ๐Ÿฝ๏ธ Made with โค๏ธ using React and modern web technologies.