mgrzeszczak / exchange-rate-predictor

Predict and plot exchange rate of popular currencies over time.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

exchange-rate-predictor

Exchange Rate visualizing and predicting application using data from NBP api.

How to install and start

Clone this repository first.

Docker image

Application can be run as a docker image:

  1. Go to docker folder and execute script ./build.sh. This will create docker image called exchange-rate-predictor.
  2. Create a new docker container:
    docker run -p 8080:80 [-e NBP_IMPORT_FROM=2018-01-01] exchange-rate-predictor:latest
    

Java JAR file

  1. Build project using ./gradlew clean build.
  2. Start the JAR file of the api project:
    java -jar -Dserver.port=SERVER_PORT -Dnbp.import-from=2018-01-01 api/build/libs/api-1.0.jar
    

After starting the application, visit http://localhost:8080/index.html.

How to use

Application will preload data from table A from nbp.import-from (by default 2018-01-01) to current date, from the NBP api. It allows to plot exchange rates for selected currencies from a given time period, and to plot predicted values for the next week. Predictions are made using simple recursive linear regression based on a shifted time window of two weeks.

frontend

Technology stack

Frontend

  1. Typescript
  2. React
  3. Redux
  4. Material UI
  5. Chart.js

Backend

  1. Spring 5
  2. RxJava
  3. Spock
  4. Retrofit
  5. Lombok
  6. H2 database
  7. Docker

License

MIT License

Copyright (c) 2018 Maciej Grzeszczak

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.

About

Predict and plot exchange rate of popular currencies over time.

License:MIT License


Languages

Language:Java 43.4%Language:TypeScript 37.7%Language:Groovy 15.3%Language:JavaScript 1.9%Language:HTML 1.0%Language:Shell 0.6%