Service for managing bets and events on FastAPI, SQLAlchemy, Postgres, Redis.
Contains 2 microservices:
bet-maker
- API for managing bets.line-provider
- API for managing events.
Bet updates are based on Redis messages.
Actual events for bets are based on Redis event:*
keys with expire=deadline
.
After the event status is updated, it will make changes to the bet status and win amount.
- Create
.env
files inside services.
make create_env
- Run project:
make start
Once started, both services, databases, redis and redis_gui will start working.
bet-maker
: http://localhost:8000
line-provider
: http://localhost:8001
redis_gui
: http://localhost:9000