An open API service indexing awesome lists of open source software.

https://github.com/mtsokol/forexbrowser

Console browser for BNP API
https://github.com/mtsokol/forexbrowser

api-client argument-parsing builder-pattern java oop

Last synced: 18 days ago
JSON representation

Console browser for BNP API

Awesome Lists containing this project

README

          

# ForexBrowser

Project for "Object Oriented Programming" course on "AGH - University of Science and Technology" in Cracow.

## How it works

ForexBrowser sends requests to BNP API and computes given data in a way of given arguments.

### Concept diagram

Diagram shows relations between abstract concepts. It isn't made in any UML standard.

![Diagram](https://image.ibb.co/hWiFPw/NBP_API.jpg)

TableBuilder as builder design pattern.

![Diagram](https://image.ibb.co/g5svrb/Forex_Browser_DFD.jpg)

## How to use

### Build jar:

Build jar by building artifact in Intellij IDEA / Eclipse

### Install autocomplete:

Only for temporary installation. Enables console autocomplete.

```sh

alias forex-browser='java -jar ForexBrowser/out/artifacts/ForexBrowser_jar/ForexBrowser.jar'

java -cp "ForexBrowser.jar" picocli.AutoComplete -n forex-browser com.oop.browser.Main

. forex-browser_completion

source ~/.bashrc

```

## External links

- [NBP API](http://api.nbp.pl/)
- [Picocli](http://picocli.info/)