Skip to content

PagnoDunadan/WerewolfServer

Repository files navigation

WerewolfServer

Game available on: https://symfony-0tdz.frb.io/werewolf (set API_URL in Options to https://symfony-0tdz.frb.io/)

How to (Short Version)

  1. Clone/download project: git clone https://github.com/PagnoDunadan/WerewolfServer.git
  2. Rename parameters.yml.dist into parameters.yml in /app/config and insert your configuration
  3. Create database: $php bin/console doctrine:database:create
    Preview query: $php bin/console doctrine:schema:update --dump-sql
    Execute: $php bin/console doctrine:schema:update --force
  4. Check your IP: $ifconfig (e.g. inet addr:192.168.1.4)
    Run server: $php bin/console server:run 192.168.1.4:8000
  5. Open http:https://192.168.1.4:8000/werewolf, download and install game on your Android smartphone (source)
  6. Open Werewolf Android app and in Options set API_URL to http:https://192.168.1.4:8000/
  7. Restart Werewolf Android app and enjoy the game :)

How to (Full Version)

  1. Install Git: sudo apt-get install git
    Download server: git clone https://github.com/PagnoDunadan/WerewolfServer.git
    Enter directory: cd WerewolfServer

  2. Install PHP7: sudo apt-get install php7.0 php7.0-xml php7.0-intl php7.0-mysql
    or PHP5: sudo apt-get install php5-cli php5-intl php5-mysql

  3. Install curl: sudo apt-get install curl
    Install Composer: sudo apt install composer
    or curl -sS https://getcomposer.org/installer | sudo php -- --install- dir=/usr/local/bin --filename=composer

  4. Install Symfony requirements: php composer install

  5. Install MySQL: sudo apt-get install mysql-server (remember password and enter it in parameters.yml)
    Rename parameters.yml.dist into parameters.yml in /app/config and insert your configuration
    Create database: $php bin/console doctrine:database:create
    Preview query: $php bin/console doctrine:schema:update --dump-sql
    Execute: $php bin/console doctrine:schema:update --force

  6. Check your IP: $ifconfig (e.g. inet addr:192.168.1.4)
    Run server: $php bin/console server:run 192.168.1.4:8000
    Open http:https://192.168.1.4:8000/werewolf, download and install game on your Android smartphone (source)
    Open Werewolf Android app and in Options set API_URL to http:https://192.168.1.4:8000/
    Restart Werewolf Android app and enjoy the game :)

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages