Invoice Generator

Demo application to generate invoice from loaded CSV file.

Sample CSV File.

Requirements

Application was built on Spring Boot 2, requirements include:

  • JDK 1.8
  • Maven
  • Docker (optional)

Building with Maven

Build with packaged Maven

./mvnw clean package

or with system-wide Maven

mvn clean package

Running with Maven

You can run with Maven using Spring Boot:

mvn spring-boot:run

Running with Java (production mode)

To run built file with Java:

java -jar target/csvservice.jar

By default, application runs on port 8080, you can override this by setting SERVER_PORT environment variable.

Visit http://localhost:8080

Docker

If you do not have Java pre-installed, you can build and run application using Docker.

docker build . -t 'csvservice-app'
#run with
docker run -p 8080:8080 csvservice-app 

This will automatically start the application on http://localhost:8080