{"id":17972939,"url":"https://github.com/marcelsavegnago/hyperledger-firstnetworksample","last_synced_at":"2025-09-14T07:26:01.781Z","repository":{"id":171845452,"uuid":"104624733","full_name":"marcelsavegnago/hyperledger-firstnetworksample","owner":"marcelsavegnago","description":"My Commodity Trading network sample with Hyperledger Composer and Fabric ","archived":false,"fork":false,"pushed_at":"2017-10-04T03:00:41.000Z","size":207,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-29T02:02:52.377Z","etag":null,"topics":["hyperledger","hyperledger-composer","hyperledger-fabric"],"latest_commit_sha":null,"homepage":null,"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/marcelsavegnago.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":"2017-09-24T06:46:00.000Z","updated_at":"2018-10-21T15:28:50.000Z","dependencies_parsed_at":null,"dependency_job_id":"cefa7167-f999-4590-8bbb-425061b6f9a3","html_url":"https://github.com/marcelsavegnago/hyperledger-firstnetworksample","commit_stats":null,"previous_names":["marcelsavegnago/hyperledger-firstnetworksample"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/marcelsavegnago%2Fhyperledger-firstnetworksample","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/marcelsavegnago%2Fhyperledger-firstnetworksample/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/marcelsavegnago%2Fhyperledger-firstnetworksample/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/marcelsavegnago%2Fhyperledger-firstnetworksample/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/marcelsavegnago","download_url":"https://codeload.github.com/marcelsavegnago/hyperledger-firstnetworksample/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247092393,"owners_count":20882218,"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":["hyperledger","hyperledger-composer","hyperledger-fabric"],"created_at":"2024-10-29T16:26:36.509Z","updated_at":"2025-04-03T23:13:28.684Z","avatar_url":"https://github.com/marcelsavegnago.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# My First Hyperledger Network\n\nA Commodity Trading network\nhttps://hyperledger.github.io/composer/introduction/introduction.html\n\n## Preparando o ambiente\n\nInstalling the pre-requisites for Hyperledger Composer on Mac OS X\n\nhttps://hyperledger.github.io/composer/installing/prereqs-mac.html\n\nInstalling and developing with Hyperledger Composer\n\nhttps://hyperledger.github.io/composer/installing/development-tools.html\n\n### Exportando variável responsável por determinar o modo de autenticação utilizado pela rede.\n\n```\nexport COMPOSER_PROVIDERS='{\n  \"github\": {\n    \"provider\": \"github\",\n    \"module\": \"passport-github\",\n    \"clientID\": \"97147032757a7a372762\",\n    \"clientSecret\": \"1c1d174d749515721d6d79387d71d4c6d0c4d49c\",\n    \"authPath\": \"/auth/github\",\n    \"callbackURL\": \"/auth/github/callback\",\n    \"successRedirect\": \"/\",\n    \"failureRedirect\": \"/\"\n  }\n}'\n```\n\n### Instalando dependências\n\n```\ncd hyperledger-firstnetworksample\nnpm install\nnpm install -g passport-github\n```\n\n### Re-generate your Business Network archive (BNA)\n\n```\ncomposer archive create --sourceType dir --sourceName . -a ./dist/my-network.bna\n```\n\n### Executando teste unitário\n\n```\nnpm test\n```\n\n### Deploy the Business Network Definition to the runtime Fabric\n\n```\ncd ./dist\ncomposer network deploy -a my-network.bna -p hlfv1 -i PeerAdmin -s randomString\n```\n\n### Generate the REST APIs for the updated Business Network\n\n```\ncd ..\ncomposer-rest-server -p hlfv1 -n my-network -i admin -s adminpw -a true\n```\n\n## Author\n\n* **Marcel Savegnago** - *Initial work*\n\nSee my github profile (https://github.com/marcelsavegnago)\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmarcelsavegnago%2Fhyperledger-firstnetworksample","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmarcelsavegnago%2Fhyperledger-firstnetworksample","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmarcelsavegnago%2Fhyperledger-firstnetworksample/lists"}