Skip to content

Latest commit

 

History

History
40 lines (27 loc) · 870 Bytes

RUNBOOK.md

File metadata and controls

40 lines (27 loc) · 870 Bytes

Run Book

Table of contents

Pre requisites

  1. JDK 11.
  2. Installed Maven

Steps

1 Build install and package all jar

  • Working directory: stock-exchange-orders
  • mvn clean compile install package

2 Run Application

  • Working directory: stock-exchange-orders
  • Example Orders File= orders.txt
  • Run below command.
java -jar target/geektrust.jar orders.txt

3 Check logs

  • Console Logs
  • Filepath Log: application.log

Search for pattern for the expected Transaction format(format:"[buy-order-id] [sell-price] [qty] [sell-order-id]"):

grep "Order Transaction completed" application.log