Skip to content

A microservice is designed to give information about current rate

Notifications You must be signed in to change notification settings

katerina20/realtime-rate

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Realtime rate exchange for USD-UAH

A microservice is designed to give information about current rate every 30 seconds

Steps to run

  1. Clone the project with git clone https://github.com/katerina20/realtime-rate.git
  2. Go to the cloned project and build it with ./mvnw clean package
  3. Up it with docker-compose up
  4. The endpoint to start receive the information is GET http://localhost:8080/api/rate/
  5. docker-compose down stops the service.

The response is shown in such format:

Current: 31,20 Average: 31,10 Date: 20.11.2022 12:21:30

For the implementation Spring Boot is used. MongoDb is used as a database. Microservice makes a request to external API to save current rate every 2 seconds to calculate average day rate. External API: https://v6.exchangerate-api.com/

About

A microservice is designed to give information about current rate

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published