Skip to content

The arbiter has to count user orders, and send to robots the more wanted action.

License

Notifications You must be signed in to change notification settings

darkmirafr/drop-master

Repository files navigation

Drop arbiter

The arbiter has to count user orders, and send to robots the more wanted action.

Install

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

make

Note: Sometimes you'll need to do either a chown -R {your_user}:{your_group} . or a chmod -R 777 var/* to make it work.

Usage

Run all with Docker with command make.

Docker runs the whole environment, the RestApi, the websocket server and PHPMyAdmin. You now have access to:

Postman collection

You can use Postman to send predefined requests to the api.

Import this Postman collection: postman.json.

Commands

Go to php container (if using Docker):

make bash

Process votes and send them to Fleet control API:

bin/console drop:votes:process

Do the same thing, but every 15 seconds:

bin/console drop:votes:schedule 15

License

This project is under AGPL-v3 license.

About

The arbiter has to count user orders, and send to robots the more wanted action.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published