Skip to content

SergeyAnshin/receipt-generator

Repository files navigation

Project name

Receipt Generator

Description

Console application that allows you to generate a store receipt.

Stack

  • Java
  • Gradle

Application launch

Requirements

  • JDK 17
  • Gradle 7.5

Specific steps

Clone the repository.

git clone https://github.com/SergeyAnshin/receipt-generator.git

git clone git@github.com:SergeyAnshin/receipt-generator.git

For the console application to work, you must pass arguments. Arguments can be passed through the console and file. The type of argument passing is defined in the application.properties file in resources.

# Arguments from console
argument.type=console

# Arguments from file
argument.type=file

To run the app via gradle you can use the following commands:

# Arguments from console
# Argument format: 1-3 2-6 card-55
# Example: gradle run --args='2-8 3-3 card-13'
gradle run --args='<productId>-<quantity> <productId>-<quantity> card-<discountCardId>'

# Arguments from file
# Argument format: file.txt
# Example: gradle run --args='arguments.txt'
gradle run --args='<pathToFile>'

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages