{"id":22416342,"url":"https://github.com/bunsdev/simple-dapp-example","last_synced_at":"2025-07-11T15:34:11.795Z","repository":{"id":107391945,"uuid":"464883490","full_name":"BunsDev/simple-dapp-example","owner":"BunsDev","description":null,"archived":false,"fork":false,"pushed_at":"2022-03-01T12:27:22.000Z","size":9,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-07-04T16:34:26.775Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"simple-dapp-example.vercel.app","language":"JavaScript","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/BunsDev.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":"2022-03-01T12:27:13.000Z","updated_at":"2022-03-01T13:39:59.000Z","dependencies_parsed_at":null,"dependency_job_id":"f98ba46f-ba02-448b-84d9-9b24af8ff1f0","html_url":"https://github.com/BunsDev/simple-dapp-example","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/BunsDev/simple-dapp-example","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BunsDev%2Fsimple-dapp-example","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BunsDev%2Fsimple-dapp-example/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BunsDev%2Fsimple-dapp-example/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BunsDev%2Fsimple-dapp-example/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/BunsDev","download_url":"https://codeload.github.com/BunsDev/simple-dapp-example/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BunsDev%2Fsimple-dapp-example/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":264840774,"owners_count":23671741,"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-12-05T15:15:46.989Z","updated_at":"2025-07-11T15:34:11.764Z","avatar_url":"https://github.com/BunsDev.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Ðapp example\n\nThis example showcases the basic principles of a Ðapp build in Meteor:\n\n- Separate the ethereum logic from you dapp\n- Receive Logs from contracts\n- Call contract funcitons\n\n## Getting started\n\nStart a geth node on a testnet:\n\n    $ geth --rpccorsdomain \"*\" --rpc --networkid 8545 --minerthreads \"1\" --datadir \u003csomePath\u003e/testChain --mine\n\nAdd `--unlock \u003cyour account\u003e` if you want to use your account to setNumbers in the contract.\n\n\nTo start this on your own you need to deploy the contract code from inside `client/lib/contract.js` first and replace the address in line 4 (`GuessNumberInstance = GuessNumber.at(...)`).\n\n\n## Play around\n\n### To deploy the contract on your own call:\n```js\nvar contractInstance = GuessNumber.new({from: web3.eth.accounts[0], gas: 200000, data: contractCode});\n```\n### To get the address use:\n```js\ncontractInstance.address;\n```\n\n\n\n### Set the number use:\n```js\nGuessNumberInstance.setNumber(10, {from: \u003cyour account\u003e, gas: 50000})\n```\n\n\n### To send money to the contract use:\n```js\nweb3.eth.sendTransaction({from: web3.eth.accounts[0], to: \u003ccontract address\u003e , value: 123000000000})\n```\n\n\n### A workshop explaining how to build Ðapps with Meteor using this project as an example can be found here:\nhttps://www.youtube.com/watch?v=SayS1dcMVWU\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbunsdev%2Fsimple-dapp-example","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbunsdev%2Fsimple-dapp-example","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbunsdev%2Fsimple-dapp-example/lists"}