Exchange Rate visualizing and predicting application using data from NBP api.
Clone this repository first.
Application can be run as a docker image:
- Go to docker folder and execute script
./build.sh
. This will create docker image called exchange-rate-predictor. - Create a new docker container:
docker run -p 8080:80 [-e NBP_IMPORT_FROM=2018-01-01] exchange-rate-predictor:latest
- Build project using
./gradlew clean build
. - 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.
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.
- Typescript
- React
- Redux
- Material UI
- Chart.js
- Spring 5
- RxJava
- Spock
- Retrofit
- Lombok
- H2 database
- Docker
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.