Giter Club home page Giter Club logo

forex-converter's Introduction

Forex-Converter

Forex-Converter is a microservices based application build using Java Spring Boot.

How to run?

  1. git clone the repository.
  2. Each directory is a seperate (micro) service.
  3. Build each project using Maven (Use JDK14 or change the pom.xml according to the available JDK version).
  4. Start Eureka server.
  5. Start other services.
  6. Go to http://localhost:8761 to see the Eureka server dashboard.

Endpoints

{
  "id": 10001,
  "from": "USD",
  "to": "LKR",
  "conversionMultiple": 186.18,
  "quantity": 1000.0,
  "totalAmount": 186180.0,
  "port": 8100
}

Paths

Location Endpoint
Root path http://localhost:8080/

HTTP request and query methods

Method Endpoint Query Description Examples
GET currency-converter/from/{FROM}/to/{TO}/quantity/{QUANTITY} Convert a quantity from one currency to another http://localhost:8080/currency-converter/from/USD/to/LKR/quantity/3000

References

  1. Microservices with Spring Boot and Java by In28Minutes
  2. https://docs.spring.io/spring-boot/docs/current/reference/html/appendix-application-properties.html#server-properties
  3. https://blog.marcnuri.com/field-injection-is-not-recommended/
  4. https://www.w3schools.com/java/java_hashmap.asp
  5. Spring Boot Quick Start by Java Brains
  6. https://start.spring.io/
  7. https://medium.com/better-programming/building-a-spring-boot-rest-api-a-php-developers-view-part-i-6add2e794646
  8. https://www.tutorialspoint.com/maven/index.htm
  9. http://tutorials.jenkov.com/maven/maven-tutorial.html

forex-converter's People

Contributors

niweera 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.