{"id":22383840,"url":"https://github.com/jorbush/simple-blockchain","last_synced_at":"2025-03-26T20:17:44.634Z","repository":{"id":232549898,"uuid":"784092079","full_name":"jorbush/simple-blockchain","owner":"jorbush","description":"A simple blockchain in Go.","archived":false,"fork":false,"pushed_at":"2024-04-21T07:21:21.000Z","size":163,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2024-04-24T04:30:37.317Z","etag":null,"topics":["blockchain","golang"],"latest_commit_sha":null,"homepage":"","language":"Go","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/jorbush.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-04-09T07:06:29.000Z","updated_at":"2024-04-21T07:55:06.000Z","dependencies_parsed_at":"2024-04-13T13:46:33.874Z","dependency_job_id":"1051a26c-1828-45fd-9809-8c4d2c62840d","html_url":"https://github.com/jorbush/simple-blockchain","commit_stats":null,"previous_names":["jorbush/simple-blockchain"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jorbush%2Fsimple-blockchain","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jorbush%2Fsimple-blockchain/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jorbush%2Fsimple-blockchain/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jorbush%2Fsimple-blockchain/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jorbush","download_url":"https://codeload.github.com/jorbush/simple-blockchain/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245727720,"owners_count":20662557,"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":["blockchain","golang"],"created_at":"2024-12-05T01:15:34.016Z","updated_at":"2025-03-26T20:17:44.610Z","avatar_url":"https://github.com/jorbush.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Simple Blockchain\n\nImplementation of a simple blockchain in Go.\n\n## Tree\n\n```bash\nsimple-blockchain/\n│\n├── blockchain.go    # Contains the definitions of the Block structure and functions related to the blockchain, such as hash calculation and block generation.\n├── main.go          # Entry point of the program. Contains the main logic of the program, including initialization of the blockchain and the web server.\n├── server.go        # Contains functions related to the web server, such as setting up the HTTP router and route handlers.\n└── utils.go         # Contains common utility functions used throughout the project, such as JSON serialization.\n```\n\n## Installation\n\n1. Clone this repository:\n\n    ```bash\n    git clone https://github.com/your_username/simple-blockchain.git\n    cd simple-blockchain\n    ```\n\n2. Run the `make install` command to compile the program and ensure all dependencies are up to date.\n\n    ```bash\n    make install\n    ```\n\n## Usage\n\nOnce installed, you can run the program with the `make run` command:\n\n```bash\nmake run\n```\n\nThis will compile the program and execute it. After running, you can interact with the blockchain through a web interface.\n\nTo add a new block to the blockchain, you can send a POST request to the endpoint with the block data in the request body. For example:\n\n```bash\ncurl -X POST -H \"Content-Type: application/json\" -d '{\"Message\": \"Hello World!\"}' http://localhost:8080\n```\n\nOr using Postman:\n\n![Postman Example](./images/postman.png)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjorbush%2Fsimple-blockchain","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjorbush%2Fsimple-blockchain","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjorbush%2Fsimple-blockchain/lists"}