Game available on: https://symfony-0tdz.frb.io/werewolf (set API_URL in Options to https://symfony-0tdz.frb.io/)
- Clone/download project:
git clone https://github.com/PagnoDunadan/WerewolfServer.git - 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 - 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://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://192.168.1.4:8000/ - Restart Werewolf Android app and enjoy the game :)
-
Install Git:
sudo apt-get install git
Download server:git clone https://github.com/PagnoDunadan/WerewolfServer.git
Enter directory:cd WerewolfServer -
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 -
Install curl:
sudo apt-get install curl
Install Composer:sudo apt install composer
orcurl -sS https://getcomposer.org/installer | sudo php -- --install- dir=/usr/local/bin --filename=composer -
Install Symfony requirements:
php composer install -
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 -
Check your IP:
$ifconfig(e.g. inet addr:192.168.1.4)
Run server:$php bin/console server:run 192.168.1.4:8000
Openhttp://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 tohttp://192.168.1.4:8000/
Restart Werewolf Android app and enjoy the game :)