{"id":18285037,"url":"https://github.com/samlet/petshop","last_synced_at":"2025-06-28T08:36:42.704Z","repository":{"id":95955393,"uuid":"286054866","full_name":"samlet/petshop","owner":"samlet","description":"pet-shop-tutorial","archived":false,"fork":false,"pushed_at":"2020-08-08T14:10:47.000Z","size":535,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-04-09T06:13:51.945Z","etag":null,"topics":[],"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/samlet.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,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2020-08-08T14:07:02.000Z","updated_at":"2020-08-08T14:10:49.000Z","dependencies_parsed_at":null,"dependency_job_id":"e38bb861-9879-4799-a406-5def4f6778a9","html_url":"https://github.com/samlet/petshop","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/samlet/petshop","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/samlet%2Fpetshop","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/samlet%2Fpetshop/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/samlet%2Fpetshop/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/samlet%2Fpetshop/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/samlet","download_url":"https://codeload.github.com/samlet/petshop/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/samlet%2Fpetshop/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":262402441,"owners_count":23305657,"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-11-05T13:15:15.751Z","updated_at":"2025-06-28T08:36:42.660Z","avatar_url":"https://github.com/samlet.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# petshop\n## pet-shop\n⊕ [Ethereum Pet Shop -- Your First Dapp | Tutorials | Truffle Suite](https://www.trufflesuite.com/tutorials/pet-shop)\n\n```sh\n$ node -v\nv10.16.3\n\nnpm install -g truffle\nmkdir pet-shop-tutorial\ncd pet-shop-tutorial\ntruffle unbox pet-shop\n# Create a new file named Adoption.sol in the contracts/ directory.\n\ntruffle compile\n\n# Create a new file named 2_deploy_contracts.js in the migrations/ directory.\n\n# $ ganache-cli -p 7545\n$ ganache-cli\n\ntruffle migrate\n\n# Create a new file named TestAdoption.sol in the test/ directory.\n# https://github.com/trufflesuite/truffle/blob/master/packages/core/lib/testing/Assert.sol\n\ntruffle test\n\n# Included with the pet-shop Truffle Box was code for the app's front-end. That code exists within the src/ directory.\n\n```\n\n+ /src/js/app.js\n    * https://www.trufflesuite.com/tutorials/pet-shop#creating-a-user-interface-to-interact-with-the-smart-contract\n\n```sh\n# “新网络”: http://127.0.0.1:7545\n# 已经修改了示例, 可直接用localhost:8545\nnpm run dev\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsamlet%2Fpetshop","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsamlet%2Fpetshop","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsamlet%2Fpetshop/lists"}