{"id":17789530,"url":"https://github.com/benderscript/blockchain","last_synced_at":"2025-04-02T00:45:42.313Z","repository":{"id":156946995,"uuid":"152329069","full_name":"BenderScript/blockchain","owner":"BenderScript","description":null,"archived":false,"fork":false,"pushed_at":"2018-10-10T06:45:56.000Z","size":48,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-02-07T16:28:51.552Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/BenderScript.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}},"created_at":"2018-10-09T22:20:24.000Z","updated_at":"2018-10-10T06:45:57.000Z","dependencies_parsed_at":null,"dependency_job_id":"5edeaee2-4d10-47ee-9437-b7d96afc0833","html_url":"https://github.com/BenderScript/blockchain","commit_stats":null,"previous_names":["benderscript/blockchain"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BenderScript%2Fblockchain","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BenderScript%2Fblockchain/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BenderScript%2Fblockchain/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BenderScript%2Fblockchain/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/BenderScript","download_url":"https://codeload.github.com/BenderScript/blockchain/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246735363,"owners_count":20825224,"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":[],"created_at":"2024-10-27T10:33:06.997Z","updated_at":"2025-04-02T00:45:42.292Z","avatar_url":"https://github.com/BenderScript.png","language":"Go","readme":"[![Build Status](https://travis-ci.org/mycoralhealth/blockchain-tutorial.svg?branch=master)](https://travis-ci.org/mycoralhealth/blockchain-tutorial)\r\n\r\n# Code your own blockchain in less than 200 lines of Go!\r\n\r\n### Tutorial\r\n\r\n[Read](https://medium.com/@mycoralhealth/code-your-own-blockchain-in-less-than-200-lines-of-go-e296282bcffc) our blog post first to see a walkthrough of the code.\r\n\r\n### Ask us anything!\r\n\r\nJoin our [Telegram](https://t.me/joinchat/FX6A7UThIZ1WOUNirDS_Ew) chat and follow us on [Twitter](https://twitter.com/myCoralHealth)!\r\n\r\n#### Check out our follow-up tutorials:\r\n- [Networking](https://github.com/mycoralhealth/blockchain-tutorial/tree/master/networking)\r\n- [Proof of Work](https://github.com/mycoralhealth/blockchain-tutorial/tree/master/proof-work)\r\n- [Proof of Stake](https://github.com/mycoralhealth/blockchain-tutorial/tree/master/proof-stake)\r\n- [IPFS](https://medium.com/@mycoralhealth/learn-to-securely-share-files-on-the-blockchain-with-ipfs-219ee47df54c)\r\n- [P2P](https://medium.com/coinmonks/code-a-simple-p2p-blockchain-in-go-46662601f417)\r\n- [Advanced Concepts for Beginners](https://medium.com/@mycoralhealth/advanced-blockchain-concepts-for-beginners-32887202afad)\r\n- [Start your own Hyperledger blockchain the Easy Way!](https://medium.com/@mycoralhealth/start-your-own-hyperledger-blockchain-the-easy-way-5758cb4ed2d1)\r\n- [Build a DApp on Hyperledger the Easy Way!](https://medium.com/@mycoralhealth/build-a-dapp-on-hyperledger-the-easy-way-178c39e503fa)\r\n- [Build your own Blockchain Twitter recorder](https://github.com/mycoralhealth/twitter-blockchain)\r\n\r\n### Deployment steps:\r\n- `git clone https://github.com/mycoralhealth/blockchain-tutorial.git`\r\n- navigate to this directory and rename the example file `mv example.env .env`\r\n- `go run main.go`\r\n- open a web browser and visit `http://localhost:8080/`\r\n- to write new blocks, send a `POST` request (I like to use [Postman](https://www.getpostman.com/apps)) to `http://localhost:8080/` with a JSON payload with `BPM` as the key and an integer as the value. For example:\r\n```\r\n{\"BPM\":50}\r\n```\r\n- Send as many requests as you like and refresh your browser to see your blocks grow! Use your actual heart rate (Beats Per Minute) to track it over time.\r\n\r\n### Screenshot\r\n\r\n![screen](https://user-images.githubusercontent.com/15616604/35492333-2829f690-0461-11e8-8c1f-8a0258d370e8.png)\r\n\r\n\r\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbenderscript%2Fblockchain","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbenderscript%2Fblockchain","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbenderscript%2Fblockchain/lists"}