{"id":15465251,"url":"https://github.com/cleicar/my-bank","last_synced_at":"2025-11-12T00:30:19.619Z","repository":{"id":168338977,"uuid":"95332478","full_name":"cleicar/my-bank","owner":"cleicar","description":"MyBank is a banking account system where customers can check their balance and make transfers to other customers.","archived":false,"fork":false,"pushed_at":"2017-07-25T20:34:55.000Z","size":45,"stargazers_count":0,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-12-28T13:43:22.558Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Ruby","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/cleicar.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":"2017-06-25T01:52:08.000Z","updated_at":"2017-06-25T12:55:15.000Z","dependencies_parsed_at":null,"dependency_job_id":"acf57da7-a275-43b1-b658-381b24102752","html_url":"https://github.com/cleicar/my-bank","commit_stats":null,"previous_names":["cleicar/my-bank"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cleicar%2Fmy-bank","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cleicar%2Fmy-bank/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cleicar%2Fmy-bank/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cleicar%2Fmy-bank/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/cleicar","download_url":"https://codeload.github.com/cleicar/my-bank/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":239598529,"owners_count":19665901,"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-10-02T01:00:40.227Z","updated_at":"2025-11-12T00:30:19.562Z","avatar_url":"https://github.com/cleicar.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Welcome to MyBank\n\nMyBank is a banking account system that helps customers manage their bank balance. With a simple web interface, the customer can easily check his account balance and make transfers to other customers.\n\n**Get Current Balance.** Input your MyBank account code and the system validates your data and displays your MyBank balance.\n\n**Transfer Money.**  Input your MyBank account code, the destination MyBank account code and the desired amount and the system does the transfer online. Please, pay attention to informe a valid account and to have enough money at your account.\n\n## Table of Contents\n\n* [Installation](#installation)\n* [How It Works](#how-it-works)\n\t* [Get Current Balance](#get-current-balance)\n\t* [Transfer Money](#get-current-balance)\n\t* [List Transfers](#list-transfers)\n* [Testing with RSpec](#testing-with-rspec)\n\n## Installation\n\n**Dependention note**: MyBank requires the MongoDB is instaled and up. The project was build with Ruby on Rails and use AngularJS at front-end.\n\n1. Clone the project.\n\n\t~~~ sh\n\t$ git clone https://github.com/cleicar/my-bank.git\n\t~~~\n\n2. Bundle the Gems.\n\n\t~~~ sh\n\t$ bundle install\n\t~~~\n\n3. Install bower dependencies\n\n\t~~~ sh\n\t$ bower install\n\t~~~\n\n4. Set the database connection at the config file `config/mongoid.yml`.\n\n5. Start the application\n\n\t~~~ sh\n\t$ rails s\n\t~~~\n\n## How It Works\n\n### Get Current Balance\n\nTo see the account balance the user needs to input the account code. The system check the database account and displays the balance on the same page.\n\nIf the account does'nt exists a warning message will be displayed.\n\n### Transfer Money\n\nTo transfer money to other customer, first the user needs to input his own account code. The system will validate the account on the database. If the account doesn't exists, a warning message will be displayed.\n\nIf the user account exists, his name will be showed and he can proceed. Input the destination account and the desired amount to transfer, then trigger button `send`.\n\nIf destination account exists and the source account has enough balance, the money will be credited to the destination user and debited from source account. If destination account does not exists or user does'nt have enough money, a warning message will be displayed.\n\nThe datetime of transaction is also saved.\n\n### List Transfers\n\nTo see the last tranfers, the user needs to input his own account code and trigger button `search`. The system will validates the account on the database. If the account doesn't exists, a warning message will be displayed.\n\nIf the user account exists, all his transfer will be displayed. Note that the field type will\n\n## Testing with RSpec\n\nThe project was build with TDD (Test Driven Development). To execute the tests just run the tests with RSpec.\n\n1. Execute all tests\n\n\t~~~ sh\n\t$ bundle exec rspec\n\t~~~\n\nTo see the test cover percent open the file `coverage/index.html` at your browser.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcleicar%2Fmy-bank","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcleicar%2Fmy-bank","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcleicar%2Fmy-bank/lists"}