{"id":20754543,"url":"https://github.com/neelamawasthi/borrower-master","last_synced_at":"2026-04-07T09:32:07.618Z","repository":{"id":52535276,"uuid":"209873347","full_name":"neelamAwasthi/Borrower-master","owner":"neelamAwasthi","description":null,"archived":false,"fork":false,"pushed_at":"2022-07-07T20:58:43.000Z","size":13,"stargazers_count":0,"open_issues_count":3,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-06-07T06:39:51.186Z","etag":null,"topics":["boot","docker","docker-compose","docker-image","java8","junit","rest","spring"],"latest_commit_sha":null,"homepage":null,"language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/neelamAwasthi.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2019-09-20T20:13:07.000Z","updated_at":"2019-09-20T20:17:34.000Z","dependencies_parsed_at":"2022-09-06T15:20:14.594Z","dependency_job_id":null,"html_url":"https://github.com/neelamAwasthi/Borrower-master","commit_stats":null,"previous_names":["neelamawasthi/borrower-master"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/neelamAwasthi/Borrower-master","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/neelamAwasthi%2FBorrower-master","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/neelamAwasthi%2FBorrower-master/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/neelamAwasthi%2FBorrower-master/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/neelamAwasthi%2FBorrower-master/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/neelamAwasthi","download_url":"https://codeload.github.com/neelamAwasthi/Borrower-master/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/neelamAwasthi%2FBorrower-master/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31508019,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-07T03:10:19.677Z","status":"ssl_error","status_checked_at":"2026-04-07T03:10:13.982Z","response_time":105,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["boot","docker","docker-compose","docker-image","java8","junit","rest","spring"],"created_at":"2024-11-17T09:18:15.950Z","updated_at":"2026-04-07T09:32:07.600Z","avatar_url":"https://github.com/neelamAwasthi.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Borrower-master\nCalculate a repayment plan for an annuity loan\n\nIts spring boot application which expose 3 REST endpoint and being used to calculate a repayment plan specific input parameters are necessary:\n• duration (number of instalments in months)\n• nominal interest rate\n• total loan amount (\"total principal amount\")\n• Date of Disbursement/Payout\n\nSetup the project locally:\n1) First import the maven project.\n   Update the project, maven clean and install \n2) Since i am using lombak libary, \n   2.1) For eclipse user: please add in eclipse folder and add the line in eclipse.ini file \n   -javaagent:/Users/neel/Documents/lib/lombok-1.16.10.jar \n   For reference please find the eclipse.ini file:\n   \n/* -startup ../Eclipse/plugins/org.eclipse.equinox.launcher_1.5.300.v20190213-1655.jar \n--launcher.library /Users/neel/.p2/pool/plugins/org.eclipse.equinox.launcher.cocoa.macosx.x86_64_1.1.1000.v20190125-2016 \n-product org.eclipse.epp.package.java.product \n-showsplash org.eclipse.epp.package.common \n--launcher.defaultAction openFile \n--launcher.appendVmargs \n-vm /Library/Java/JavaVirtualMachines/jdk1.8.0_131.jdk/Contents/Home/jre/bin \n-vmargs \n-Dosgi.requiredJavaVersion=1.8 \n-Dosgi.instance.area.default=@user.home/eclipse-workspace \n-XX:+UseG1GC -XX:+UseStringDeduplication \n--add-modules=ALL-SYSTEM \n-XstartOnFirstThread \n-Dorg.eclipse.swt.internal.carbon.smallFonts \n-Dosgi.requiredJavaVersion=1.8 \n-javaagent:/Users/neel/Documents/lib/lombok-1.16.10.jar \n-Dosgi.dataAreaRequiresExplicitInit=true -Xms256m -Xmx1024m \n--add-modules=ALL-SYSTEM -Xdock:icon=../Resources/Eclipse.icns \n-XstartOnFirstThread -Dorg.eclipse.swt.internal.carbon.smallFonts \n-Declipse.p2.max.threads=10 \n-Doomph.update.url=http://download.eclipse.org/oomph/updates/milestone/latest \n-Doomph.redirection.index.redirection=index:/-\u003ehttp://git.eclipse.org/c/oomph/org.eclipse.oomph.git/plain/setups/\n*/\n\n  2.2) For Intellij users: Add the lombak libary directly in IDE.\n\n3) To deploy the application: \n   3.1) by docker file: \n       3.1.1) Build: docker build --file=DockerFile --tag=borrower-service:latest --rm=true . \n       3.1.2) Run: docker run --name=borrower-service --publish=8081:8081 borrower-service:latest \n   3.2) by docker compose file: \n       3.2.1) docker-compose up\n\nHit the swagger url API exposed on 8081 port number, below is the swagger ui url for this API: http://localhost:8081/swagger-ui.html\n\nInput: In JSON format\n\n{\n\"loanAmount\": \"5000\",\n\"nominalRate\": \"5.0\",\n\"duration\": 24,\n\"startDate\": \"2018-01-01T00:00:01Z\"\n}\n\n\nOutput:\n{\n  \"borrowerPlan\": [\n    {\n      \"borrowerPaymentAmount\": 219.36,\n      \"date\": \"2018-01-01T00:00:01.000Z\",\n      \"initialOutstandingPrincipal\": 5000,\n      \"interest\": 20.83,\n      \"principal\": 198.53,\n      \"remainingOutstandingPrincipal\": 4801.47\n    },\n    {\n      \"borrowerPaymentAmount\": 219.36,\n      \"date\": \"2018-01-01T00:00:01.000Z\",\n      \"initialOutstandingPrincipal\": 4801.47,\n      \"interest\": 20.01,\n      \"principal\": 199.35,\n      \"remainingOutstandingPrincipal\": 4602.12\n    },\n    {\n      \"borrowerPaymentAmount\": 219.36,\n      \"date\": \"2018-01-01T00:00:01.000Z\",\n      \"initialOutstandingPrincipal\": 4602.12,\n      \"interest\": 19.18,\n      \"principal\": 200.18,\n      \"remainingOutstandingPrincipal\": 4401.94\n    },\n.....\n\n  }\n ]\n}\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fneelamawasthi%2Fborrower-master","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fneelamawasthi%2Fborrower-master","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fneelamawasthi%2Fborrower-master/lists"}