This project shows how to use reactive programming using Jersey and Spring-Boot.
Install Java 8 as described at https://docs.oracle.com/javase/8/docs/technotes/guides/install/install_overview.html
Install Maven as described at https://maven.apache.org/install.html
First, make sure that you are located under the project folder. Here, compile the project by running:
mvn clean package
After that, launch the program by executing:
./local_run.sh
To see the result, load the following URL: http://localhost:8080 in your browser. The server port can be changed in local_run.sh.
The reactive code can be found in the following files:
- StockExchangeEventsResource.java - java implementation using RXJava and Jersey AsyncResponse
- /src/main/resources/static/js/app.js - JavaScript implementation using RXJS