Online chat on websocket using Swoole (https://www.swoole.co.uk/)
For using on local machine:
-
Make sure you have installed Docker and Docker-compose
-
Clone project using Git and enter project directory
-
cp src/Config.php.sample src/Config.php and configure it.
cp ./docker/env-example ./docker/.env and configure it.
-
cd docker; docker-compose build && docker-compose up -d
-
docker exec -it ws_chat_workspace bash
npm install
composer install
php bin/console app:database:create
php bin/console app:migration:migrate (Enter nothing when it`ll ask about the version)
npm run production
(May be someday I will automate this process)