Skip to content

Latest commit

 

History

History
executable file
·
57 lines (41 loc) · 1.31 KB

File metadata and controls

executable file
·
57 lines (41 loc) · 1.31 KB

Currency Exchange Micro Service - H2

Run com.in28minutes.microservices.currencyconversionservice.CurrencyConversionServiceApplicationH2 as a Java Application.

Resources

{
  "id": 10001,
  "from": "USD",
  "to": "INR",
  "conversionMultiple": 65.00,
  "environmentInfo": "NA"
}

H2 Console

Notes

Tables Created

create table exchange_value 
(
	id bigint not null, 
	conversion_multiple decimal(19,2), 
	currency_from varchar(255), 
	currency_to varchar(255), 
	primary key (id)
)

Containerization

Troubleshooting

Creating Container

  • mvn package

Running Container

Basic

docker container run --publish 8000:8000 in28min/currency-exchange:0.0.1-SNAPSHOT