https://github.com/jarenal/horseracing
Horse Racing is a game for testing purposes using websockets and PHP.
https://github.com/jarenal/horseracing
php websocket
Last synced: 21 days ago
JSON representation
Horse Racing is a game for testing purposes using websockets and PHP.
- Host: GitHub
- URL: https://github.com/jarenal/horseracing
- Owner: jarenal
- License: isc
- Created: 2019-03-06T09:27:45.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2019-03-06T10:22:39.000Z (over 7 years ago)
- Last Synced: 2025-01-18T07:30:43.299Z (over 1 year ago)
- Topics: php, websocket
- Language: PHP
- Size: 31.3 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Welcome to Horse Racing!
Horse Racing is a game for testing purposes using websockets and PHP.
## Setup
Clone or download the project in a folder and then install dependencies using composer:
```bash
$ cd PROJECT_FOLDER
$ composer install
```
## Database
Import the database schema located at:
```textmate
misc/schema/schema.sql
```
into your database.
## Config file
Before to run the project you need to create the config file and update it with your settings.
Please copy the default config file:
```textmate
cp config/config.default.yaml config/config.yaml
```
and then update the new one with your database settings.
## Start Websocket daemon
This project requires run a websocket daemon. Execute the next command from the root of the project.
```bash
$ php bin/daemon.php
```
## Setup Aapache
For to load the homepage we will need create a new VirtualHost on Apache.
```textmate
ServerName horseracing.local
DocumentRoot /var/www/horseracing/www
AllowOverride All
Order Allow,Deny
Allow from All
ErrorLog /var/log/apache2/horseracing_error.log
CustomLog /var/log/apache2/horseracing_access.log combined
```
Don't forget reload Apache configuration and modify /etc/hosts file.
## Let's play!
Finally visit horseracing.local from your browser for to load the homepage.
## Authors
* **Jose Antonio** - *Initial work*
## Donations
If you found this useful. Please, consider support with a small donation:
* **BTC** - 1PPn4qvCQ1gRGFsFnpkufQAZHhJRoGo2g5
* **BCH** - qr66rzdwlcpefqemkywmfze9pf80kwue0v2gsfxr9m
* **ETH** - 0x5022cf2945604CDE2887068EE46608ed6B57cED8
## License
This project is licensed under the ISC License - see the [LICENSE](LICENSE) file for details