{"id":22669108,"url":"https://github.com/programmersteve/javabankcli","last_synced_at":"2026-05-19T07:34:29.483Z","repository":{"id":248455806,"uuid":"827649549","full_name":"ProgrammerSteve/JavaBankCli","owner":"ProgrammerSteve","description":"A java cli application that connects to a postgresql database to persist data for users and accounts.","archived":false,"fork":false,"pushed_at":"2024-07-15T04:51:51.000Z","size":22,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-29T10:44:37.849Z","etag":null,"topics":["java","postgresql"],"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/ProgrammerSteve.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-07-12T05:09:13.000Z","updated_at":"2024-07-21T02:16:49.000Z","dependencies_parsed_at":"2025-02-04T09:39:44.676Z","dependency_job_id":null,"html_url":"https://github.com/ProgrammerSteve/JavaBankCli","commit_stats":null,"previous_names":["programmersteve/javabankcli"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ProgrammerSteve%2FJavaBankCli","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ProgrammerSteve%2FJavaBankCli/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ProgrammerSteve%2FJavaBankCli/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ProgrammerSteve%2FJavaBankCli/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ProgrammerSteve","download_url":"https://codeload.github.com/ProgrammerSteve/JavaBankCli/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ProgrammerSteve%2FJavaBankCli/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":259146804,"owners_count":22812309,"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":["java","postgresql"],"created_at":"2024-12-09T15:18:36.128Z","updated_at":"2025-09-17T23:33:50.235Z","avatar_url":"https://github.com/ProgrammerSteve.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"### Setting up connection to postgresql database\n- Navigate to directory: `src/main/resources`\n- create a file called: `db.properties`\n- Should follow the format:\n```\njdbc.url=jdbc:postgresql://XXXXXXX/XXXXXXX\njdbc.username=XXXXXXX\njdbc.password=XXXXXXX\n```\n\n### Setting up tables on database\n- There is a one-to-one relationship between two tables: `users`, `accounts`\n```\nCREATE TABLE IF NOT EXISTS users (\n    user_id SERIAL PRIMARY KEY,\n    username VARCHAR(50) UNIQUE,\n    password VARCHAR(50)\n);\n\nCREATE TABLE IF NOT EXISTS accounts (\n    account_id SERIAL PRIMARY KEY,\n    user_id INT UNIQUE,\n    balance DECIMAL(10, 2) CHECK (balance \u003e= 0),\n    FOREIGN KEY (user_id) REFERENCES users(user_id) ON DELETE CASCADE\n);\n```\n\n### If unauthenticated the CLI will look like:\n```\nChoose an action:\n1:Login\n2:Register\n3:Exit\n```\n\n### If authenticated the CLI will look like:\n```\nHello {NAME}, Choose an action:\n1:ViewBalance\n2:Withdraw\n3:Deposit\n4:Logout\n5:Exit\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fprogrammersteve%2Fjavabankcli","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fprogrammersteve%2Fjavabankcli","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fprogrammersteve%2Fjavabankcli/lists"}