{"id":19154962,"url":"https://github.com/allisonoge/mvp-wallet-service-app","last_synced_at":"2026-04-12T09:02:33.438Z","repository":{"id":126954141,"uuid":"549622356","full_name":"AllisonOge/mvp-wallet-service-app","owner":"AllisonOge","description":"A REST API for a wallet app","archived":false,"fork":false,"pushed_at":"2022-10-16T19:29:39.000Z","size":197,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-01-03T19:42:13.357Z","etag":null,"topics":["expressjs","knexjs","rest-api"],"latest_commit_sha":null,"homepage":"https://ogechukwukanu-lendsqr-be-test.herokuapp.com/api/v1/","language":"JavaScript","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/AllisonOge.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":"2022-10-11T13:27:24.000Z","updated_at":"2023-02-05T07:03:08.000Z","dependencies_parsed_at":"2023-06-19T05:31:08.458Z","dependency_job_id":null,"html_url":"https://github.com/AllisonOge/mvp-wallet-service-app","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AllisonOge%2Fmvp-wallet-service-app","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AllisonOge%2Fmvp-wallet-service-app/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AllisonOge%2Fmvp-wallet-service-app/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AllisonOge%2Fmvp-wallet-service-app/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/AllisonOge","download_url":"https://codeload.github.com/AllisonOge/mvp-wallet-service-app/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":240239639,"owners_count":19770148,"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":["expressjs","knexjs","rest-api"],"created_at":"2024-11-09T08:29:01.807Z","updated_at":"2026-04-12T09:02:33.337Z","avatar_url":"https://github.com/AllisonOge.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# mvp-wallet-service\n\n## Introduction\n\nA simple REST API with authentication for a wallet service. Tech stack used include:\n\n- [Express.js](https://expressjs.com)\n- [Knex.js](https:knexjs.org) (ORM)\n- [MySQL](https://mysql.com) DB\n\n### Database Structure\n\n![mvp-wallet-service](./public/images/MVP-wallet-service.png)\n[Check out my LucidChart](https://lucid.app/lucidchart/c2db75ac-0891-4536-b2b1-20e8a0fe15be/edit?view_items=yRKqh-dGCGV0%2CyRKq2mg3OX13%2CyRKqHCDikTjn%2CJ5XZow_X1SGc%2CyRKqP32DqN0h\u0026invitationId=inv_8009efb7-ba86-4b6d-9efc-b65b14d7d517#)\n\n## Overview\n\nThe API allows the following tasks:\n\n- Users must authenticate to access all endpoints. Open an account with the `/users` endpoint and login to get bearer access token. Passwords must be strong passwords (at least 8 characters long with a combination of at least an uppercase character, a lowercase character, a digit and a symbol).\n\n- User must open an account to perform all transactions: get summary of transactions, get account details, deposit, withdraw and transfer.\n\n## Authentication\n\nAuthentication is done with JWT. See the full documentation at the end of this document for guidiance\n\n## Error Codes\n\n### General\n\nHTTP Exceptions across all endpoints except authentication\n\n- `HTTP_401_UNAUTHORIZED`: Access Denied/Unauthorized request \n\n- `HTTP_401_UNAUTHORIZED`: User's credentials could not be verified \n\n- `HTTP_422_UNPROCESSABLE`: \"Invalid token\"\n\n### Authentication\n\nHTTP Exceptions with `/login` endpoint\n\n- `HTTP_422_UNPROCESSABLE`: Email must be valid\n\n- `HTTP_422_UNPROCESSABLE`: Password must be a string\n\n- `HTTP_401_UNAUTHORIZED`: User's credentials could not be verified \n\n### Users\n\nHTTP Exceptions with `/users` endpoint\n\n- `HTTP_422_UNPROCESSABLE`: Email must be valid\n\n- `HTTP_422_UNPROCESSABLE`: Password must be at least 8 characters long with a combination of at least an uppercase character, a lowercase character, a digit and a symbol\n\n- `HTTP_409_CONFLICT`: Duplicate entry: user@email.com already exists\n\n### Accounts\n\nHTTP Exceptions with `/accounts` endpoint\n\n- `HTTP_409_CONFLICT`: Duplicate entry: account already exists\n\n- `HTTP_404_NOT_FOUND`: User {id} does not have an account\n\n### Transfers\n\nHTTP Exceptions with `/transfers` endpoint\n\n- `HTTP_403_FORBIDDEN`: Amount is invalid: enter a value greater than 0\n\n- `HTTP_404_NOT_FOUND`: User {id} does not have an account  \n\n- `HTTP_409_CONFLICT`: Insufficient balance\n\n- `HTTP_404_NOT_FOUND`: Account {id} not found\n\n- `HTTP_403_FORBIDDEN`: Restricted request: cannot transfer to self\n\n### Deposits\n\nHTTP Exceptions with `/deposits` endpoint\n\n- `HTTP_403_FORBIDDEN`: Amount is invalid: enter a value greater than 0\n\n- `HTTP_404_NOT_FOUND`: User {id} does not have an account\n\n- `HTTP_409_CONFLICT`: Insufficient balance\n\n### Withdrawals\n\nHTTP Exceptions with `/withdrawals` endpoint\n\n- `HTTP_403_FORBIDDEN`: Amount is invalid: enter a value greater than 0\n\n- `HTTP_404_NOT_FOUND`: User {id} does not have an account\n\n- `HTTP_409_CONFLICT`: Insufficient balance\n\n## Transactions\n\nHTTP Exceptions with `/transactions` endpoint\n\n- `HTTP_404_NOT_FOUND`: User {id} does not have an account\n\n## Endpoints\n\n[See full documentation](https://documenter.getpostman.com/view/12015411/2s83zmMhzh)","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fallisonoge%2Fmvp-wallet-service-app","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fallisonoge%2Fmvp-wallet-service-app","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fallisonoge%2Fmvp-wallet-service-app/lists"}