{"id":31629679,"url":"https://github.com/mrroot5/wallet-python-django","last_synced_at":"2026-05-14T21:37:10.426Z","repository":{"id":78494998,"uuid":"176000067","full_name":"mrroot5/wallet-python-django","owner":"mrroot5","description":"This project simulate a virtual wallet with Django","archived":false,"fork":false,"pushed_at":"2025-10-20T14:32:41.000Z","size":226,"stargazers_count":0,"open_issues_count":7,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-10-20T16:33:32.106Z","etag":null,"topics":["django","django-api","django-atomic","django-atomic-transactions","django-rest-framework","django-transactions","django2","django3"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/mrroot5.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","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,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2019-03-16T17:03:08.000Z","updated_at":"2025-10-20T14:32:46.000Z","dependencies_parsed_at":"2025-10-04T23:38:58.011Z","dependency_job_id":null,"html_url":"https://github.com/mrroot5/wallet-python-django","commit_stats":null,"previous_names":["mrroot5/wallet-python-django"],"tags_count":6,"template":false,"template_full_name":null,"purl":"pkg:github/mrroot5/wallet-python-django","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mrroot5%2Fwallet-python-django","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mrroot5%2Fwallet-python-django/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mrroot5%2Fwallet-python-django/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mrroot5%2Fwallet-python-django/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mrroot5","download_url":"https://codeload.github.com/mrroot5/wallet-python-django/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mrroot5%2Fwallet-python-django/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33044434,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-13T13:14:54.681Z","status":"online","status_checked_at":"2026-05-14T02:00:06.663Z","response_time":57,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":["django","django-api","django-atomic","django-atomic-transactions","django-rest-framework","django-transactions","django2","django3"],"created_at":"2025-10-06T21:33:00.633Z","updated_at":"2026-05-14T21:37:10.421Z","avatar_url":"https://github.com/mrroot5.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Wallet Python Django\n\nThis project simulates a virtual wallet with Django atomic transactions.\n\nStaff users could do almost any type of action while regular users only could\nmanage their own wallets.\n\nOnly superusers could change wallet balance.\n\n## Requirements\n\n### Old docker implementations\n\n* docker engine \u003e= 19.03.\n* docker-compose \u003e= 1.27.\n\n### New docker with docker-compose integrated\n\n* docker version \u003e= 28.3.3\n\n## How to use this project?\n\n### Using make command (recommended)\n\nIf you can run a `Makefile` command, you can use a \"fast init\" with: `make loaddata`.\n\n### Build\n\nBuild docker image:\n\n```shell\nmake build\n```\n\n#### Migrate\n\nApply django migrations:\n\n```shell\nmake migrate\n```\n\n#### Runserver\n\nRun django runserver command:\n\n```shell\nmake dev\n```\n\n#### Uvicorn\n\nRun uvicorn server:\n\n```shell\nmake uvicorn\n```\n\n#### Load sample data\n\nApply `initial_data.json` fixture. This action will erase all previous data:\n\n```shell\nmake loaddata\n```\n\n*Default admin password for local development is `admin`.*\n\n#### Run tests\n\n```shell\nmake tests\n```\n\n## Know issues\n\n### Database connection error: web service could not connect to db service\n\nSometimes when try to migrate it gets an error message like that. The IP is an example:\n\n```shell\nIs the server running on host \"db\" (\u003c192.168.1.25\u003e) and accepting\n\tTCP/IP connections on port 5432?\n```\n\nWhen `web` is up and running and `db` is not ready yet, we could have this type of error.\nIn this situation try to execute it again.\n\n## TODO\n\n* Use possitive integer instead of float / decimal fields to save `amount`.\nUse type to control possitve or negative transactions. Do not forget validations!\nThis will improve performance.\n* Move DRF views logic like transactions from views to model. With this change we avoid our DRF dependance and we change it to another technology in the future.\n* Remove staff accounts (html select) from regular user wallet and transactions creation UI.\n* Auto create a **transaction** error on atomic `IntegrityError`.\n* Add `flake8` to testing stage.\n* Create a **view** using django **templates** and **css grid** to show `GetNumClientAccounts`.\n* Create a **business** flow:\n  * Create **business** account.\n  * Create **business** wallet.\n  * Create **business** transactions.\n  * Allow **business** to manage their our client accounts.\n* Enable django **admin login** with created users.\n* Enable django **password validations** on user creation.\n* Finish **Dockerfile production** stage.\n* Improve `pg_ready` in container `healthcheck`.\n\n...\n\nAre you here yet? OK, nice one. I should invite you to a cup of coffee.\nJust give me your wallet username and password to get in touch hehehe (yep, a silly joke).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmrroot5%2Fwallet-python-django","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmrroot5%2Fwallet-python-django","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmrroot5%2Fwallet-python-django/lists"}