This project is done under IEEE NITK. This is a simulation of the auctioning process of Indian Premier League (IPL). The clients are team franchises and the server is the auctioneer. The server is responsible for managing the auction and the clients are responsible for bidding for players. But the clients are not the regular clients. They are Reinforcement Learning agents which improve their policy of choosing the players based on a variety of factors.
The Indian Premier League (IPL) auction is an annual event in which cricket franchises bid for players to build their teams for the upcoming season of the IPL, a professional Twenty20 cricket league in India. The auction provides an opportunity for teams to acquire new players, release existing ones, and strategize to strengthen their squads.
- Clone the repository using
git clone https://github.com/hgupta12/AuctionSystem.git
- Rename
.env.example
to.env
and fill in the required environment variables.
- Run the command
docker-compose up
to start the infrastructure or add the flag-d
to run it in the background in detached mode. - Following are the port mappings for the services:
- MongoDB - 27017
- Mongo express (to manage MongoDB) - 8081
- Redis - 6379
- Redis Stack (GUI to manage Redis) - 8001
- Kafka - 9092
- KafDrop (GUI to manage Kafka) - 9000
- Run the command
docker-compose down
to bring down the infrastructure.
- Run the command
npm install
in theclient
andserver
directories to install the dependencies. - Run the command
npm run dev
in theclient
andserver
directories to start the client and server respectively.
- Client-side consumption of server-side events
- Consume the player sold from redis in the front-end
- Obtain current price from the server