Git Product home page Git Product logo

exchange-rate-service's Introduction

TO Run the application using DOCKER

Step 01 : Build the project using CMD : mvn clean install STEP 02 : Build Docker image using CMD : sudo docker build -t exchange-service-app . STEP 03 : Run docker image using CMD : sudo docker run -p 8081:8081 exchange-service-app STEP 04 : GOTO any browser and use swagger using http://localhost:8081/swagger-ui/ url.

Swagger URI : http://localhost:8081/swagger-ui/

CURL to fetch reference list for given currency symbols: curl -X GET "http://localhost:8081/v1/api/exchange-rate?date=2021-07-09&symbols=EUR&symbols=GBP" -H "accept: */*"

CURL to fetch conversion based on USD to EUR and GBP with amount 5USD: curl -X GET "http://localhost:8081/v1/api/exchange-rate?amount=5&baseCurrency=USD&date=2021-07-09&symbols=EUR&symbols=GBP" -H "accept: */*"

Fetch exchange rate list for given date curl -X GET "http://localhost:8081/v1/api/exchange-rate?baseCurrency=EUR&date=2021-01-20" -H "accept: */*"

Get list of country names: Used objects instead of direct lists so that if in future, if I have to add new parameters i can add easily curl -X GET "http://localhost:8081/v1/api/exchange-rate/available-currency/list" -H "accept: */*" URL for a public website to show graph: http://localhost:8081/v1/api/exchange-rate/view-chart/HUF/USD

FUTURE CHANGES THAT MUST BE ADDED ARE

  1. Docker configuration - Tried adding docker configuration but had to face issues for reading CSV file which was taking time to resolve.

  2. Adding scheduler for fetching new records whenever the website updates data.

exchange-rate-service's People

Watchers

James Cloos avatar Kashif Ali 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.