Fix-me is a stock exchange simulation that implements networking, sockets and the FIX (Financial Information Exchange) trading algorithm.
The aim of this project, the last Java project from the 42 / WeThinkCode_ curriculum, is to develop multi-threaded network applications with asynchronous sockets and the java executor framework.
- Installing with Homebrew
In the terminal run the following:
$ brew update
$ brew cask install java
$ brew install maven
- Installing with Chocolatey
In a Powershell run the following:
$ choco install jdk8
$ choco install maven
Clone this repo to your local machine using:
$ git clone https://github.com/Mahloko/fix-me.git
- You will need three separate terminals
First Terminal : Router
$ sh runRouter
Second Terminal : Broker
$ sh runBroker
Second Terminal : Market
$ sh runMarket
- You will need three separate shells
First Shell : Router
$ mvn clean package
$ java -jar router/target/router.jar
Second Shell : Broker
$ java -jar broker/target/broker.jar
Second Shell : Market
$ java -jar market/target/market.jar firstMarketStock