IPL 2018
- 1 minSummary:
This was a fun Android application wherein a user needs to register using mobile number. After login, user is presented with a list of all upcoming IPL matches. The user can make predictions as to who the user thinks will win that specific match. Users are scored on the basis of correct predictions and a leaderboard was maintained.
Tech stack:
- Spring Boot
- Maven
- Jsoup
- OkHttp3
- H2 - In Memory Database
- Hibernate
- MySQL
- AWS EC2, RDS
Further reading:
Spring Boot was the choice of framework because of its ease of use. Additionally, using Spring Boot means a huge amount of code could be reused from earlier projects. Maven was used as a build tool. The resulting jar after Maven build was deployed on AWS EC2 instance which was maintained in the same security group as the AWS RDS instance. This increased security to the database. AWS RDS was a MySQL database server. In addition to MySQL database, one H2 - In memory database was also used to serve assets that were required by the android app. This technique actually reduced one round trip time (per request) of going to the RDS instance and fetching the required assets.
This project was revived for the 2019 season of IPL.
We could not find any free API that was able to provide us live scores and ball by ball updates. Hence we decided to poll the official IPL match webpage and parse it for ball by ball commentry and live score. This was done using Jsoup library.