Skip to content

mhd21/account-manager

Repository files navigation

Build and Run

  • You should install docker and docker-compose

  • To build application run:


sh build.sh

  • After building, you can run the following:

docker-compose up

Documentation

After running the application you can access the documentation by following url:

http://localhost:8080/swagger-ui/index.html

Test

To isolate testing environment, I considered separate docker file and docker compose file for running test. Also I considered docker compose to have an instance of postgres for testing purposes.

To run tests you can run the following command:

sudo docker-compose -f docker-compose.test.yml up --build
  • After running tests, terminate it by CTRL + c or docker-compose -f docker-compose.test.yml down

Note:

  • It's better to implement exchange rate service provider more modular

  • It's better to set exchange rate api access key as a ENV variable

  • Because of problems after creating jar file to access swagger endpoint, I use ./mvnw spring-boot:run in docker file

  • To isolate testing environment, I considered separate docker file and docker compose file for running test

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages