{"id":21388514,"url":"https://github.com/monte9/helloworld-blockchain","last_synced_at":"2025-07-13T15:32:31.382Z","repository":{"id":66129174,"uuid":"103498240","full_name":"Monte9/HelloWorld-Blockchain","owner":"Monte9","description":"Hello World Dapp in Ethereum with Solidity ","archived":false,"fork":false,"pushed_at":"2017-09-14T19:03:38.000Z","size":8,"stargazers_count":3,"open_issues_count":1,"forks_count":3,"subscribers_count":3,"default_branch":"master","last_synced_at":"2024-10-27T11:48:32.617Z","etag":null,"topics":["ethereum","smart-contracts","solidity","truffle"],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","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/Monte9.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}},"created_at":"2017-09-14T07:06:15.000Z","updated_at":"2023-05-24T17:21:32.000Z","dependencies_parsed_at":"2023-02-22T20:30:41.828Z","dependency_job_id":null,"html_url":"https://github.com/Monte9/HelloWorld-Blockchain","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/Monte9%2FHelloWorld-Blockchain","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Monte9%2FHelloWorld-Blockchain/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Monte9%2FHelloWorld-Blockchain/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Monte9%2FHelloWorld-Blockchain/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Monte9","download_url":"https://codeload.github.com/Monte9/HelloWorld-Blockchain/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":225893884,"owners_count":17540966,"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":["ethereum","smart-contracts","solidity","truffle"],"created_at":"2024-11-22T12:18:20.970Z","updated_at":"2024-11-22T12:18:21.420Z","avatar_url":"https://github.com/Monte9.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# HelloWorld-Blockchain\n\nHello World Dapp in Ethereum with Solidity\n\n## Beginner's Guide\n\n### 1. Write a smart contract\n\nHere's what a simple Hello World smart contract looks like:\n\n```\npragma solidity ^0.4.8;\n\ncontract HelloWorld {\n  uint public balance;\n\n  function HelloWorld() {\n      balance = 1000;\n  }\n}\n```\n\n### 2. Compile and deploy\n\nUsing `truffle`, we can compile and deploy the smart contract to our local test network using `testrpc`\n\n```truffle compile \u0026\u0026 truffle migrate --reset```\n\n### 3. Run the contract\n\nRun the following commands on the `truffle console` with `testrpc` running in the background:\n\n```\nvar helloworld = HelloWorld.deployed()\n\nhelloworld.then(a =\u003e console.log(a.balance().then(console.log)))\n```\n\n**Output:**\n\n```\n{ [String: '1000'] s: 1, e: 3, c: [ 1000 ] }\n```\n\nIn the above output, you can see the balance (of 1000) that we had in our smart contract.\n\n### 4. Next Steps\n\nBuild a smart contract that has the ability to read-write the balance in a smart contract.\n\n## Resources:\n\n- [Youtube Video - Introduction to Ethereum Smart Contract Development with Solidity](https://www.youtube.com/watch?v=8jI1TuEaTro)\n- [Truffle Getting Started Guide](http://truffleframework.com/docs/getting_started/installation)\n- [Testrpc Getting Started Guide](https://github.com/ethereumjs/testrpc#install)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmonte9%2Fhelloworld-blockchain","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmonte9%2Fhelloworld-blockchain","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmonte9%2Fhelloworld-blockchain/lists"}