Skip to content

ekbdizzy/bets-service

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Bets Service

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.


How to start:

  1. Create .env files inside services.
make create_env
  1. 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

About

API to create events and make bets.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published