Our stock market program will consist of three main components:
- A function simulating an external service from which we can query the current price—this would likely be a network call in a real setting
- A scheduler that polls the preceding function at a predefined interval
- A display function that's responsible for updating the screen
We'll start by creating a new Leiningen project, where the source code for our application will live. Type the following on the command line and then switch into the newly created directory:
lein new stock-market-monitor cd stock-market-monitor
As we'll be building a GUI for this application, go ahead and add a dependency on seesaw to the dependencies section ...