Skip to content

Latest commit

 

History

History
90 lines (66 loc) · 2.15 KB

File metadata and controls

90 lines (66 loc) · 2.15 KB

WhatGame? the solution to a question "what to game"?

WhatGame? logo

WhatGame is a mobile app designed to help you and your friends decide what game to play next. No more endless debates—create lobbies with friends, discover exciting games, and vote to pick the perfect one!

Features

  • Friends Lobbies: Easily create or join lobbies with your friends to coordinate gaming sessions.
  • Game Discovery: Browse a curated selection of games tailored to your group's preferences.
  • Voting System: Vote on suggested games in real-time to quickly decide what to play together.

Tech Stack

  • Frontend: React Native with Expo for a smooth cross-platform mobile experience (iOS and Android).
  • Backend: Laravel (PHP framework) for robust API development, user authentication, and data management.

Getting Started

Prerequisites

  • Node.js 24+ (for frontend development)
  • PHP 8.3+ and Composer (for backend)
  • Expo CLI: npm install -g @expo/cli
  • A database like MySQL or SQLite (configured in Laravel)

Frontend Setup (React Native + Expo)

  1. Clone the repository:

    git clone https://github.com/KevinTheSome/WhatGame.git
    cd WhatGame/frontend
    
  2. Install dependencies:

    npm install
    
  3. Set up the environment file:

    cp .env.example .env
    
  4. Start the development server for expo go:

    npx expo start
    
  5. Open the app in Expo Go on your mobile device or use an emulator.

Backend Setup (Laravel)

  1. Navigate to the backend directory:

    cd WhatGame/backend
    
  2. Install dependencies:

    composer install
    
  3. Copy the environment file:

    cp .env.example .env
    
  4. Add the API key to the .env. ''' RAWG_API_KEY="" '''

  5. Generate application key:

    php artisan key:generate
    
  6. Configure your database in .env and run migrations:

    php artisan migrate
    
  7. Start the server:

    php artisan serve --host0.0.0.0
    

API Integration

Update the frontend's API base URL in the Expo config to point to your Laravel backend (e.g., http://localhost:8000 for local development).