Git Product home page Git Product logo

currency_rates's Introduction

Requirements

Заданието цели създаване на application използвайки Spring/Spring Boot, който да събира данни за валутни курсове от доставчик, да ги съхранява в локална база от данни и да акумулира репорти за дадени периоди върху данните.

  1. Да се изгради локална база данни MySQL или Postgres и да се направи data model за запазване на информация, която ще се вземе от fixer.io

  2. Да се изгради Currency Rest API с методи:
    /currencies - return list with all currencies
    /rates/historic/{base} - return all exchange rates from 1999 with {base} - Can't be done due to api restrictions
    /rates/historic/{base}/{date} - return all exchange rates from {date} with {base} - Can't be done due to api restrictions
    /rates/latest/{base} - return all exchange rates for current day with {base}- Currenctly works with EUR as code only. Rest are restricted
    /report/{currency}/{date} - return all rates for {currency} with series per day with base = EUR


Насоки: За извличане на данните трябва да се използва API на fixer.io. За методите /currecies и /rates application-a може да бъде използван като proxy на fixer.io За методите /report application-a трябва да обработи запазените данни и да покаже акумулирания резултат.

How to run

Start local persist docker driver

There is configuration in docker-compose.yml. In order to work initially local persist driver is needed. It is not native on windows and mac, so start relevant file - start_local_persist_mac.sh or start_local_persist_windows.cmd.

Start database from docker-compose.yml

To do that start following command in main project folder:
docker-compose -f docker-compose.yml up -d mysql

Start app

Use spring boot maven plugin. Execute following command:
mvn spring-boot:run

Important

Rates won't be saved unless first /currencies is called.

currency_rates's People

Contributors

radoslavlozanov avatar dependabot[bot] avatar

Watchers

James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.