The arbiter has to count user orders, and send to robots the more wanted action.
Requires git, Docker, docker-compose.
git clone git@github.com:Darkmira/drop-master.git
cd drop-master/
# Create your .env from distribution and edit it
cp .env.dist .env
makeNote: Sometimes you'll need to do either a
chown -R {your_user}:{your_group} .or achmod -R 777 var/*to make it work.
Run all with Docker with command make.
Docker runs the whole environment, the RestApi, the websocket server and PHPMyAdmin. You now have access to:
- http://0.0.0.0:8480/index-dev.php/api/race Rest Api (dev mode)
- http://0.0.0.0:8480/api/race Rest Api (prod mode)
- http://0.0.0.0:8480/index-dev.php/_profiler/ Symfony web profiler (only dev mode).
- http://0.0.0.0:8481 PHPMyAdmin (login:
root/root). ws://0.0.0.0:8482Websocket server.
You can use Postman to send predefined requests to the api.
Import this Postman collection: postman.json.
Go to php container (if using Docker):
make bashProcess votes and send them to Fleet control API:
bin/console drop:votes:processDo the same thing, but every 15 seconds:
bin/console drop:votes:schedule 15This project is under AGPL-v3 license.