Assumptions
- git client and java already installed
To checkout the project do the following
- git clone https://github.com/nikhil-p/ticket-service.git
- cd into ticket-service
- run ./gradlew build
- The above command compiles the classes, runs tests and creates a jar under build/libs.
Handling user errors by throwing runtime exceptions.
To start using the service put the jar under your applications classpath, create an instance of TicketServiceImpl by passing the following params * totalRows - total the event space has. * maxSeatsPerRow - maxseats under each row. * maxHoldTimeInSeconds - max time in seconds to hold the reservation.