{"id":23268561,"url":"https://github.com/dubems/bank-account","last_synced_at":"2025-04-06T08:42:07.304Z","repository":{"id":213859042,"uuid":"365618553","full_name":"dubems/bank-account","owner":"dubems","description":"A dockerised application to enable creation of different types of account (CHECKING,SAVINGS and LOAN) and performing different types of transactions on them","archived":false,"fork":false,"pushed_at":"2021-05-08T22:03:39.000Z","size":73,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-02-12T14:17:54.301Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","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/dubems.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,"governance":null,"roadmap":null,"authors":null}},"created_at":"2021-05-08T21:58:08.000Z","updated_at":"2021-05-08T22:04:14.000Z","dependencies_parsed_at":"2023-12-23T19:14:58.957Z","dependency_job_id":"2dec3e72-4d04-4c02-a04b-adcd781b68c5","html_url":"https://github.com/dubems/bank-account","commit_stats":null,"previous_names":["dubems/bank-account"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dubems%2Fbank-account","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dubems%2Fbank-account/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dubems%2Fbank-account/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dubems%2Fbank-account/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dubems","download_url":"https://codeload.github.com/dubems/bank-account/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247457741,"owners_count":20941906,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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":[],"created_at":"2024-12-19T17:19:33.739Z","updated_at":"2025-04-06T08:42:07.268Z","avatar_url":"https://github.com/dubems.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"### Project\nA RESTful API for Bank Account creation and performing different actions of the different types of BankAccount.\n\nCHECKING_ACCOUNT, SAVINGS_ACCOUNT and PRIVATE_LOAN_ACCOUNT\n\n\n### Solution\nSince the app is supposed to be stateless, the below design considerations were made:\n* Repository methods are synchronized to ensure thread saftey\n* Bank accounts are stored in Hashmap with IBAN as key for easy lookup (0(1))\n\n\n### Technologies\nThis project is created with:\n* Java version 11\n* SpringBoot version 2.3.5.RELEASE\n* RestAssured, Junit 5 and Mockito for Testing\n* Docker for containerization\n* Swagger for API documentation\n\n### Installation and Running\nThe project can be run in two ways:\n* Gradle\n* Docker\n\n#### Maven\nTo start the app using gradle, you'll need to run the command below:\n\n```\n./gradlew bootRun\n```\n\n#### Docker\nTo run the app as a docker container, we have to first package the jar by running the command below\n ```\n./gradlew build\n```\n \nbuild the image using the Dockerfile using the command below\n\n```\n docker build ${project-dir} -t sample-tag\n```\n\nand then run the app in a container by using the command below:\n\n```\ndocker run -p 8080:8080 sample-tag\n```\n\nApp should be available at **localhost:8080**\n  \n### Documentation\n The API documentation can be viewed in this path\n **/swagger-ui.html**\n\n### Testing\nTo run the tests that were created along with the submission, Kindly run the command below:\n\n```\n./gradlew clean test\n```\n\n### Production ready considerations(out of scope)\n* Metrics and Alerts\n\n### Side Note :)\n* Since application is supposed to be stateless, we cannot get the ACID properties of a relational database to gaurantee `TRANSACTIONS`\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdubems%2Fbank-account","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdubems%2Fbank-account","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdubems%2Fbank-account/lists"}