Skip to content

techops-recsys-grad-hiring/India-gift-store-java

Repository files navigation

Welcome to Gift Store!

For Windows - please refer this

This is where you can start to get familiar with the problem and what you need to run it. This codebase is used during code pairing session for JOI initiative. It's focused on identifying code smells, refactoring and testing legacy codebase while promoting conversations.

Problem Statement

A college student with a group of friends enjoys giving gifts tailored to each person's interests. He/She frequents a gift shop that offers a wide range of transaction. Could you assist him/her in calculating his/her expenditure on gifts? 5% GST gets added on total worth of products.
NOTE1:- Make sure to handle exceptions gracefully.
NOTE2:- Make sure to write modular code.
For more info refer to the problem statement document shared to you separately.

Technologies used

  • Java
  • Gradle - build tool
  • JUnit - unit testing framework

What you need to run it

Before the interview

Get familiar with the codebase! Make sure you have the necessary dependencies installed, and that you are able to run the tests.

Build

Note: Run the below command only when the tests are fixed.

./gradlew clean build

Run Tests

Note: Initially the tests will fail. You need to fix them.

./gradlew test

Run the Application

To understand how this application would be used you can check the main method in the GiftStore class. If you want to see the results, run:

./gradlew clean build -x test
java -jar build/libs/joi-grad-gift-store-java.jar

Existing Implementation

Application code currently has the following implementation:

  • Required Domain Models needed for the base problem statement.
  • Hard-coded list of gift items with their prices.
  • A function to calculate the total cost of gifts (stubbed to add the core logic on your own).

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages