Skip to content
This repository has been archived by the owner on Oct 19, 2023. It is now read-only.

football-betting/rating-api

Repository files navigation

Warning

Version 2 (Microservice edition) for football-betting | no longer current, we have developed something new

Rating-Api


###Setup project:

  • please make sure to have amqp-1.11.0beta or higher installed locally
  • composer install
  • docker-compose up -d
  • bash init.sh

###Before pushing:

  • Execute following commands without getting any errors:
    • php vendor/bin/phpunit
    • vendor/bin/infection --only-covered --min-msi=100
    • vendor/bin/psalm

Execute Command:

  • to get all ratings from the European Championship
    • bin/console football:ratings
  • to get only live ratings from the European Championship
    • bin/console football:ratings --live

###RabbitMq

  • Start container:
    • docker-compose start
  • Stop container:
    • docker-compose start
  • Admin Panel:
  • Messenges are published to rabbitMq as Json:
{"event":"rating.api","data":{"matchId":"TR-IT","team1":"TR","team2":"IT","homeTeamOdd":"1.2","awayTeamOdd":"3.4","drawOdd":"6.5"}}

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published