{"id":13620906,"url":"https://github.com/okwme/dapp-scratch","last_synced_at":"2025-07-25T12:31:46.940Z","repository":{"id":54944227,"uuid":"110001536","full_name":"okwme/dapp-scratch","owner":"okwme","description":"CLI for generating javascript modules from Solidity Contracts for Decentralized Apps","archived":false,"fork":false,"pushed_at":"2018-07-13T08:37:45.000Z","size":433,"stargazers_count":41,"open_issues_count":1,"forks_count":15,"subscribers_count":3,"default_branch":"master","last_synced_at":"2024-11-06T12:07:46.276Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"isc","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/okwme.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2017-11-08T16:31:42.000Z","updated_at":"2023-12-21T20:40:35.000Z","dependencies_parsed_at":"2022-08-14T07:10:45.948Z","dependency_job_id":null,"html_url":"https://github.com/okwme/dapp-scratch","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/okwme%2Fdapp-scratch","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/okwme%2Fdapp-scratch/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/okwme%2Fdapp-scratch/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/okwme%2Fdapp-scratch/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/okwme","download_url":"https://codeload.github.com/okwme/dapp-scratch/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":227573221,"owners_count":17788142,"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-08-01T21:01:00.569Z","updated_at":"2024-12-01T13:48:44.524Z","avatar_url":"https://github.com/okwme.png","language":"JavaScript","funding_links":[],"categories":["Tools","Libraries"],"sub_categories":[],"readme":"# Dapp Scratch\nA command line interface for generating a Javascript module for interacting with a Solidity contract.\n\n## Tutorial\n[Dapp Scratch: a CLI for Building Dapps (and tutorial for building your first one)](https://medium.com/@billyrennekamp/dapp-scratch-a-cli-for-building-dapps-and-tutorial-for-building-your-first-one-5cabdff3771e)\n\n## install\n```\nnpm install -g dapp-scratch\n```\n## run\n```\n$ dapp-scratch build \u003cContractName\u003e\n$ dapp-scratch build \u003cContractName\u003e --address 0x1234567890123456789012345678901234567890\n$ dapp-scratch build \u003cContractName\u003e --ABI './build/contracts/ContractName.json'\n$ dapp-scratch build \u003cContractName\u003e --contract './contracts/ContractName.sol'\n$ dapp-scratch test\n$ dapp-scratch -h\n\n  Usage: dapp-scratch build [options]\n\n\n  Options:\n\n    -V, --version              output the version number\n    -c, --contract [contract]  Contract name or location\n                                 ie: SampleContract or SampleContract.sol or ./contracts/SampleContract.sol\n    -b, --abi [abi]            ABI name or location\n                                 ie: SampleContract or SampleContract.json or ./build/contracts/SampleContract.json\n    -a, --address [address]    Address of deployed contract\n    -h, --help                 output usage information\n\n\n  Commands:\n\n    build   Build a module from Contract or ABI\n    test    Generate a contract for testing\n\n\n```\n\n## results\n```\n$ dapp-scratch build SampleContract\nContract found at ./contracts/SampleContract.sol\nweb3 installed\nweb3-provider-engine installed\nModule created at ./dapp-module/SampleContract/index.js\n\n/*\n * To use SampleContract just import it into your project:\n */\n\nconst SampleContract = require('./dapp-module/SampleContract/index.js')\nlet sampleContract = new SampleContract()\nsampleContract.helloWorld()\n\n/*\n * Have Fun : )\n */\n```\n\n## develop\n```\ngit clone git@github.com/okwme/dapp-scratch\ncd dapp-scratch\nnpm install\nnpm run dev\n```\n\n## test\n```\nnpm run test\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fokwme%2Fdapp-scratch","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fokwme%2Fdapp-scratch","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fokwme%2Fdapp-scratch/lists"}