{"id":17972501,"url":"https://github.com/ustaserif/hyperledger_fabric_explorer","last_synced_at":"2026-05-05T07:31:57.608Z","repository":{"id":258284531,"uuid":"873762388","full_name":"ustaserif/hyperledger_fabric_explorer","owner":"ustaserif","description":"Hyperledger Fabric \u0026 Explorer Development Environment","archived":false,"fork":false,"pushed_at":"2024-12-06T08:28:33.000Z","size":346,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-04-03T22:45:10.571Z","etag":null,"topics":["blockchain","chaincode","hyperledger-explorer","hyperledger-fabric","node-js","typescipt"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ustaserif.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":"2024-10-16T17:14:20.000Z","updated_at":"2024-12-06T08:27:14.000Z","dependencies_parsed_at":null,"dependency_job_id":"d20d1831-6d8f-4de4-847a-3d93ff5d3232","html_url":"https://github.com/ustaserif/hyperledger_fabric_explorer","commit_stats":null,"previous_names":["ustaserif/hyperledger_fabric_explorer"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/ustaserif/hyperledger_fabric_explorer","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ustaserif%2Fhyperledger_fabric_explorer","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ustaserif%2Fhyperledger_fabric_explorer/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ustaserif%2Fhyperledger_fabric_explorer/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ustaserif%2Fhyperledger_fabric_explorer/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ustaserif","download_url":"https://codeload.github.com/ustaserif/hyperledger_fabric_explorer/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ustaserif%2Fhyperledger_fabric_explorer/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32640533,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-04T10:08:07.713Z","status":"online","status_checked_at":"2026-05-05T02:00:06.033Z","response_time":54,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":["blockchain","chaincode","hyperledger-explorer","hyperledger-fabric","node-js","typescipt"],"created_at":"2024-10-29T16:19:18.218Z","updated_at":"2026-05-05T07:31:57.593Z","avatar_url":"https://github.com/ustaserif.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"\n# 🚀 **Hyperledger Fabric \u0026 Explorer Development Environment**\n\nA streamlined setup for developing, testing, and managing a **Hyperledger Fabric** network, integrated seamlessly with **Hyperledger Explorer** for real-time network visibility.\n\n---\n\n## ⚙️ **Getting Started**\n\n### 🔧 1. **Start the Network with Explorer**\n\nTo start the network, follow these steps:\n\n1. **Navigate to the `test-network` directory**:\n   ```bash\n   cd test-network\n   ```\n   \n2. **Launch the network** with the following command:\n   ```bash\n   ./network.sh up createChannel -c mychannel -ca\n   ```\n   This will spin up the Fabric network and create a channel named `mychannel`. Additionally, the `-ca` flag starts the Certificate Authority (CA) services for the network.\n\n3. **Adding a new peer** to **Org1**?  \n   Simply use the commands provided in the `addPeer1.sh` script to quickly set up a peer for Org1.\n\n4. Once the network is up and running, **Explorer** will be available at **port 8090**.\n\n   Access it via your browser at:\n\n   ```\n   http://localhost:8090\n   ```\n\n   🔍 **Explorer Dashboard**:  \n   Hyperledger Explorer provides a user-friendly interface to monitor and explore your network’s transactions, blocks, chaincodes, and peers.\n\n---\n\n### 🛠 **Troubleshooting**:\n   - **Explorer not accessible on port 8090?**  \n     If you're unable to access Explorer, try restarting it from the Docker console.  \n     Run the following command to stop and restart the Docker services:\n     ```bash\n     docker-compose -f explorer/docker-compose-explorer.yaml down\n     docker-compose -f explorer/docker-compose-explorer.yaml up -d\n     ```\n\n---\n\n### 🔻 2. **Stop the Network**\n\nWhen your development or testing session is complete, you can bring the network down with the following command:\n\n```bash\n./network.sh down\n```\n\n⚠️ **Important**:  \nAfter stopping the network, it's essential to ensure that all Docker volumes are properly removed. This will prevent potential issues when restarting the network for future sessions.\n\n---\n\n## 💻 **Running the Asset-Transfer-Basic Application**\n\nTo explore and test chaincode functionality, you can run the **Asset-Transfer-Basic** application. Follow the steps below:\n\n1. **Navigate to the Asset Transfer Directory**:\n   ```bash\n   cd asset-transfer-basic/application-gateway-typescript\n   ```\n\n2. **Install required dependencies** using `yarn`:\n   ```bash\n   yarn install\n   ```\n\n3. **Start the application** by running:\n   ```bash\n   cd src\n   ts-node app.js\n   ```\n\n### 🚀 **Testing Chaincode Methods**\n\nYou can test various functionalities of the **Asset Transfer** chaincode by enabling/disabling the provided methods in the `app.js` file. Here’s an example of how you can customize which functions to run:\n\n```javascript\n// Initialize a set of asset data on the ledger using the chaincode 'InitLedger' function.\n// await initLedger(contract);\n\n// Return all the current assets on the ledger.\nawait getAllAssets(contract);\n\n// Create a new asset on the ledger.\n// await createAsset(contract);\n\n// Update an existing asset asynchronously.\n// await transferAssetAsync(contract);\n\n// Get the asset details by assetID.\n// await readAssetByID(contract);\n\n// Update an asset which does not exist.\n// await updateNonExistentAsset(contract);\n```\n\n🔑 **Tip**:  \nSimply uncomment the method(s) you want to test and comment out the ones you don't. This way, you can control which operations to perform on the ledger.\n\n---\n\n## 📋 **Key Features of the Setup**:\n\n- **Fabric Network**: A customizable, multi-org, multi-peer Hyperledger Fabric network.\n- **Explorer Integration**: Real-time monitoring of the network, including transactions, chaincodes, and blocks via Hyperledger Explorer.\n- **Chaincode Testing**: A ready-to-go asset transfer chaincode application in TypeScript for testing and development.\n\n---\n\n### 🧑‍💻 **Additional Resources**:\n- [Hyperledger Fabric Documentation](https://hyperledger-fabric.readthedocs.io/en/latest/)\n- [Hyperledger Explorer GitHub](https://github.com/hyperledger/blockchain-explorer)\n\n---\n\n🎉 **Happy Developing with Hyperledger Fabric \u0026 Explorer!** 🎉\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fustaserif%2Fhyperledger_fabric_explorer","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fustaserif%2Fhyperledger_fabric_explorer","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fustaserif%2Fhyperledger_fabric_explorer/lists"}