osandadileepa / bank-deposit

Test project to create fixed deposit with specific account holder

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Getting Started

Test project to get all account and deposit detaild from Account Holder's NIC and display the summary with interest.

Build and Deployement instruction

Development Enviroment setup

Make sure following are met

  • JDK 1.8
  • Docker and Docker Compose
  • MySQL 5.7.xx

Mysql User credentials

  • Following username and password should include username: root, password: root
  • Mysql instance should be exposed in localhost in port 3306
  • jdbc:mysql://localhost:3306/

Appication source and development envioronment

  • Backend available at src/main/java
  • MySQL instance will be available by using docker-compose file at src/main/docker(command : docker-compose up)
  • Backend will be available by using following command at the project root.
./mvnw spring-boot:run -Dspring-boot.run.profiles=dev

Build application binary

In the project root directory execute the following bach script

./build.sh

Start the application

  • MySQL instance should available at locally, port 3306 with root username and root password in order to jar file to work.
java -jar -Dspring.profiles.active=dev target/bank-deposit-0.0.1-SNAPSHOT.jar

After executing above command application api is presented at http://localhost:8080/api

To excute docker based containerized deployement

  • Run the docker-compose.yml file using the following command
docker-compose up --build

Account Deposit api information

  • RestController relevant to get Deposite and account informations are available in the AccountController and business logic in AccountService

About

Test project to create fixed deposit with specific account holder


Languages

Language:Java 96.9%Language:Dockerfile 1.7%Language:Shell 1.4%