Horse Racing is a game for testing purposes using websockets and PHP.
Clone or download the project in a folder and then install dependencies using composer:
$ cd PROJECT_FOLDER
$ composer install
Import the database schema located at:
misc/schema/schema.sql
into your database.
Before to run the project you need to create the config file and update it with your settings.
Please copy the default config file:
cp config/config.default.yaml config/config.yaml
and then update the new one with your database settings.
This project requires run a websocket daemon. Execute the next command from the root of the project.
$ php bin/daemon.php
For to load the homepage we will need create a new VirtualHost on Apache.
<VirtualHost *:80>
ServerName horseracing.local
DocumentRoot /var/www/horseracing/www
<Directory /var/www/horseracing/www>
AllowOverride All
Order Allow,Deny
Allow from All
</Directory>
ErrorLog /var/log/apache2/horseracing_error.log
CustomLog /var/log/apache2/horseracing_access.log combined
</VirtualHost>
Don't forget reload Apache configuration and modify /etc/hosts file.
Finally visit horseracing.local from your browser for to load the homepage.
- Jose Antonio - Initial work
If you found this useful. Please, consider support with a small donation:
- BTC - 1PPn4qvCQ1gRGFsFnpkufQAZHhJRoGo2g5
- BCH - qr66rzdwlcpefqemkywmfze9pf80kwue0v2gsfxr9m
- ETH - 0x5022cf2945604CDE2887068EE46608ed6B57cED8
This project is licensed under the ISC License - see the LICENSE file for details