Provides live stock prices from Yahoo Finance API
- Run
sbt run
to start API
- Install Yarn
- Go to
react-frontend
directory - Run
yarn install && yarn start
to start UI
- Install Yarn
- Run
sbt frontendDev
to start UI
Live Stocks
+------------------------------------------------+
| |
| |
1. Incoming | +------------+ |
+------------+ Websocket | | | |
| | | | Subscriber | |
| +------------------------> Parent | |
| Client | | | | |
| <----------+ | +-----+------+ |
| | | | | |
+------------+ | | +------------+ 2. Create subscriber |
| | | | +----------------+
| | +------v-----+ Polls every | | |
| | | | Second | | |
+-------------------------+ Subscriber +----------------------------> Yahoo API |
| | <----------------------------+ |
| 3. Return WS | | | | |
| flow to handle +------------+ | +----------------+
| adding new stocks |
| and streaming in |
| price changes |
| |
| |
| |
+------------------------------------------------+