{"id":20743273,"url":"https://github.com/wesleybertipaglia/spring-bank","last_synced_at":"2025-03-11T12:32:05.536Z","repository":{"id":246561108,"uuid":"821485459","full_name":"wesleybertipaglia/spring-bank","owner":"wesleybertipaglia","description":"Spring Bank is a RESTful web service that provides banking services. It is built using Spring Boot, Spring Data JPA, PostgreSQL, and Docker.","archived":false,"fork":false,"pushed_at":"2024-07-21T15:21:12.000Z","size":120,"stargazers_count":0,"open_issues_count":6,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-01-18T02:22:54.998Z","etag":null,"topics":["docker","java","postgresql","project","spring"],"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/wesleybertipaglia.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,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-06-28T16:41:08.000Z","updated_at":"2024-07-21T15:21:12.000Z","dependencies_parsed_at":"2024-07-05T23:12:46.164Z","dependency_job_id":null,"html_url":"https://github.com/wesleybertipaglia/spring-bank","commit_stats":null,"previous_names":["wesleybertipaglia/spring-bank"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wesleybertipaglia%2Fspring-bank","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wesleybertipaglia%2Fspring-bank/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wesleybertipaglia%2Fspring-bank/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wesleybertipaglia%2Fspring-bank/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/wesleybertipaglia","download_url":"https://codeload.github.com/wesleybertipaglia/spring-bank/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243035077,"owners_count":20225464,"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":["docker","java","postgresql","project","spring"],"created_at":"2024-11-17T07:09:54.792Z","updated_at":"2025-03-11T12:32:05.506Z","avatar_url":"https://github.com/wesleybertipaglia.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Spring Bank\n\nSpring Bank is a RESTful web service that provides banking services. It is built using Spring Boot, Spring Data JPA, PostgreSQL, and Docker.\n\n## Table of Contents\n\n- [Getting Started](#getting-started)\n- [Features](#features)\n- [ERD Diagram](#erd-diagram)\n- [Contributing](#contributing)\n- [License](#license)\n\n## Getting Started\n\n### Running with Docker\n\nThe easiest way to run the application is with Docker.\n\n```bash\ndocker-compose up -d\n```\n\n### Running with Maven\n\nAlternatively, you can run the application with Maven.\n\n#### Prerequisites\n\n- Java 22 or later (it's compatible with Java 17, but you may need to update the `sourceCompatibility` and `targetCompatibility` in the `build.gradle` file)\n- Maven 3.8.1 or later\n\n```bash\nmvn spring-boot:run\n```\n\n\u003e The application will be available at [http://localhost:8080](http://localhost:8080).\n\n\u003e The Adminer will be available at [http://localhost:8081](http://localhost:8081).\n\n## Features\n\n- Create a new account\n- Get account details\n- Deposit money\n- Withdraw money\n- Transfer money between accounts\n\n## ERD Diagram\n\nThe following Entity-Relationship Diagram (ERD) shows the relationships between the entities in the application:\n\n```mermaid\nclassDiagram\n    class User {\n        uuid id\n        string name\n        string username\n        roles role\n        string password\n        datetime created_at\n        datetime updated_at\n    }\n\n    class Agency {\n        uuid id        \n        uuid bank_id\n        int number\n        string address\n        datetime created_at\n        datetime updated_at\n    }\n    \n    class Account {\n        uuid id\n        uuid user_id\n        uuid agency_id\n        int number\n        float balance      \n        datetime created_at\n        datetime updated_at\n    }\n    \n    class Bank {\n        uuid id\n        string name\n        string code        \n        datetime created_at\n        datetime updated_at\n    }    \n\n    class Transaction {\n        uuid id\n        uuid account_id\n        float value\n        transaction_type type\n        string description\n        datetime created_at\n        datetime updated_at\n    }\n\n    User \"1\" -- \"n\" Account : owns\n    Agency \"1\" -- \"n\" Account : has\n    Bank \"1\" -- \"n\" Agency : has\n    User \"1\" -- \"n\" Transaction : makes\n```\n\n## Contributing\n\nContributions are welcome! Please fork the repository and submit a pull request with your changes.\n\n## License\n\nThis project is licensed under the MIT License - see the [LICENSE](./LICENSE) file for details.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwesleybertipaglia%2Fspring-bank","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fwesleybertipaglia%2Fspring-bank","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwesleybertipaglia%2Fspring-bank/lists"}