{"id":21440694,"url":"https://github.com/sdediego/blockchain","last_synced_at":"2026-04-12T02:32:13.608Z","repository":{"id":49634491,"uuid":"232407144","full_name":"sdediego/blockchain","owner":"sdediego","description":"Blockchain written in Python3","archived":false,"fork":false,"pushed_at":"2021-06-11T18:00:04.000Z","size":514,"stargazers_count":0,"open_issues_count":6,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-06-14T20:51:06.076Z","etag":null,"topics":["api","asynchronous","backend","blockchain","consensus-algorithm","cryptocurrency","cryptography","fastapi","frontend","javascript","mining","peer-to-peer","proof-of-work","python","react","transaction","transaction-pool","wallet","websocket-server"],"latest_commit_sha":null,"homepage":null,"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/sdediego.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}},"created_at":"2020-01-07T20:04:31.000Z","updated_at":"2020-09-13T16:38:33.000Z","dependencies_parsed_at":"2022-09-19T15:01:01.035Z","dependency_job_id":null,"html_url":"https://github.com/sdediego/blockchain","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/sdediego/blockchain","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sdediego%2Fblockchain","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sdediego%2Fblockchain/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sdediego%2Fblockchain/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sdediego%2Fblockchain/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/sdediego","download_url":"https://codeload.github.com/sdediego/blockchain/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sdediego%2Fblockchain/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31702579,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-11T21:17:31.016Z","status":"online","status_checked_at":"2026-04-12T02:00:06.763Z","response_time":58,"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":["api","asynchronous","backend","blockchain","consensus-algorithm","cryptocurrency","cryptography","fastapi","frontend","javascript","mining","peer-to-peer","proof-of-work","python","react","transaction","transaction-pool","wallet","websocket-server"],"created_at":"2024-11-23T01:17:44.065Z","updated_at":"2026-04-12T02:32:13.590Z","avatar_url":"https://github.com/sdediego.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Blockchain\n\n\n### Backend\n\n#### Activate virtualenv\nCreate a virtual environment called blockchain.\nThen execute:\n```sh\nsource .virtualenvs/blockchain/bin/activate\n```\n\n#### Install dependencies\nMake sure that the virtual environment is activated.\nFrom the backend directory:\n```sh\npip install -r requirements.txt\n```\n\n#### Run tests\nMake sure that the virtual environment is activated.\nFrom the backend directory:\n\nTo run the complete tests suite execute:\n```sh\ntox\n```\n\nTo run a particular test case execute:\n```sh\npython -m unittest tests.\u003ctests_directory\u003e.\u003ctest_file\u003e.\u003ctest_case\u003e\n```\n\n#### Run application\nMake sure that the virtual environment is activated.\nStart several application instances in localhost.\nFrom the backend directory in different terminals:\n```sh\npython -m src.bin.www -ap 5000 -pp 6000\npython -m src.bin.www -ap 5001 -pp 6001 -n \"ws://127.0.0.1:6000\"\npython -m src.bin.www -ap 5002 -pp 6002 -n \"ws://127.0.0.1:6000, ws://127.0.0.1:6001\"\n```\nwhere  \nap = api port  \npp = p2p server port  \nn  = already known p2p nodes uris  \n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsdediego%2Fblockchain","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsdediego%2Fblockchain","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsdediego%2Fblockchain/lists"}