
Introduce Hyperledger Fabric on Kubernetes and AWS, covering container management, scalability, and security. An enthusiastic instructor invites questions and provides resources in GitHub and readme.
Learn to deploy Hyperledger Fabric networks on Kubernetes and AWS, with hands-on setup, compute resource guidance, and admin account insights from the course readme and docs.
Understand the cost implications of a production grid network on AWS for Hyperledger Fabric, including pricing models, monthly spend, and domain and SSL expenses.
Hyperledger is an open source collaborative effort hosted by the Linux Foundation that enables a distributed, blockchain-enabled ledger and flexible data sharing across multi-tenant environments.
Understand how Kubernetes and AWS enable orchestration for a collaborative Hyperledger Fabric network, with cross-region support and scalable, secure management.
Install base requirements to run a Hyperledger Fabric network on a local Kubernetes environment: update the OS, install VirtualBox, essential tooling, and runtime tools such as go, node, and Docker.
Discover what docker is and why it powers a scalable Hyperledger Fabric network. Learn how containers and images, environment variables, and docker-compose enable local testing and production readiness.
Watch this quick note to review updates for the Hyperledger Fabric 2.x course, including a new 2.2 repo, continued access to 1.4 materials, and guidance on questions via Slack.
Discover how to obtain the course code from GitHub by cloning the master branch of the repository, with future branches for each video, using git and Visual Studio Code.
https://github.com/happilymarrieddad/k8s-hyperledger-fabric-2.2
Build a resource trading app that uses IBM and Oracle resources and resource types, creates new items in maintenance, and observes the node API and frontend over a local network.
Preview the frontend code of the Vegas application built with Vue, and examine production and development builds, environment variable overrides, and local versus production deployment with Ingenix.
This quick preview introduces the node API for a Hyperledger Fabric app, covering Express routing for resources and resource types, server setup, and how the immutable ledger records changes.
Preview the go API for the hyperledger fabric project, focusing on a go server with gorilla mux and RESTful routes for resources and resource types, port binding and curl tests.
Explore how Hyperledger network uses peers, ledgers, and chain code to process API requests, with an order coordinating transactions and channels hosting separate ledgers.
IBM and Oracle collaborate in a Hyperledger Fabric network using a main channel, peers, and orderers to process chaincode and propagate ledgers with eventual consistency.
https://hyperledger-fabric.readthedocs.io/en/release-2.2/orderer/ordering_service.html
https://hyperledger-fabric.readthedocs.io/en/release-2.2/peers/peers.html
Explore the basics of encryption in a Hyperledger network, including public and private keys, SSL certs, and how messages are encrypted and decrypted to prevent eavesdropping.
Set up your local machine to run a Hyperledger Fabric network, install dependencies and binaries for certificate generation, and configure a Linux-based environment with Docker, avoiding Windows development pitfalls.
Walk through starting a full Hyperledger Fabric network locally, generating crypto material and artifacts, joining channels, deploying chaincode, and launching the API and frontend.
Explore how certificate authorities validate and encrypt Fabric network traffic, scale by running a CA per organization, and configure docker-compose with env vars, volumes, and ports for orderers and orgs.
Generate and manage Fabric CA certificates for Hyperledger Fabric with a startup script that provisions an MSP folder, enrolls users, and syncs crypto materials for multiple orders.
Examine the cryptographic material by inspecting the cryptographic folder, review MSP data, and understand how orderer and peers use private keys and certificates.
Configure the Hyperledger Fabric network with a config file, set the config path, define organizations and policies, and understand endorsement, raft orderers, channels, and genesis block.
https://github.com/hyperledger/fabric/blob/master/sampleconfig/configtx.yaml
Walk through the docker-compose file for the Hyperledger Fabric network, detailing orders and peers, genesis config, MSP and TLS settings, and volume mappings for the network bootstrap.
start the network with docker-compose, bring up orderers and peers, monitor logs, create and join the channel, copy the channel block, and connect peers using the anchor transaction file.
Explore chaincode development for Hyperledger Fabric in Go, including vendoring dependencies via go mod vendor, building binaries, and implementing create, read, update, and transaction queries on resource data with indexing.
Install and test chaincode by packaging, installing on peers, and approving it across organizations; then create, query, update, and transact to validate the chaincode and its state.
Master the final setup of Hyperledger Explorer on a fabric network by configuring the explorer, resolving version issues, and validating blocks, transactions, and channels to inspect the live network.
Take down the Hyperledger Fabric network in two ways: reset the state with make clean, then bring it down and up with docker compose; or rebuild cryptographic material and data.
Automate bringing up the hyperledger fabric network, join peers to channels, and install chaincode via a scripted workflow, including channel creation, anchor updates, and resource testing.
Explore private data in a Hyperledger Fabric network by defining per-resource-type private names, configuring private data collections, and enforcing organization-specific access, as IBM and Oracle members see distinct data.
Demonstrate private data access by testing four APIs (IBM and Oracle) across Node and Go, using resource types on localhost ports and validating responses.
Explore the node API workflow for Hyperledger Fabric: configure MSP and crypto material, manage wallets and gateway options, connect to peers, and query contracts via index transactions returning JSON.
Master the Go API setup for Hyperledger Fabric on Kubernetes, configuring crypto paths, credential stores, and network organizations. Learn how to query and invoke via a configurable router and server.
set up a local kubernetes test environment for hyperledger fabric by installing minikube and kubectl and selecting a driver, then start the cluster.
Explore how Kubernetes uses deployments and stateful sets, with persistent claims for shared storage. Learn how services provide networking and load-balanced access.
Explore persistent volume claims (PVCs) in Kubernetes, configure storage with read write many access, attach volumes to multiple pods, and validate PVCs in deployments.
Compare Kubernetes deployments, Docker Compose, highlighting networking, services, and port mappings. Explain how volumes mount to network storage versus local storage, and how environment variables use array syntax in YAML.
Move storage dependencies to network storage by copying artifacts and configuration into containers, creating shared data folders, and enabling network-wide access via kubernetes and scripts.
Launch and configure certificate authorities in a Hyperledger Fabric network on Kubernetes, deploying certificate authorities deployments, managing volumes, and provisioning crypto materials for TLS-enabled client communications.
Generate artifacts for production using the config, create the folder structure, and produce the genesis block and channel artifacts, including IBM and Oracle anchor updates.
Start the orderers using artifacts from the last video, compare Kapos to the current deployment, and review port mappings and MSB/RTLS mounting. Confirm leader election and orders coming online.
Start the peers by launching containers, configure deployments and volumes to persist state, and apply production secrets while managing channels, gossip, and chaincode access.
Test and deploy a Hyperledger Fabric network by joining peers to channel, updating anchors, packaging, installing, approving, committing chaincode, creating resources, and validating private data collections across IBM and Oracle.
Push docker images to Docker Hub and authenticate to enable repository-based pulling, then use a script to build and push versioned node API and web API images for Kubernetes deployments.
Deploy and test your api in a company network by mapping a node port, applying deployments and services in Kubernetes, and curl the service url.
Be mindful of the high costs when running the Hyperledger Fabric network on Kubernetes and AWS; estimate expenses, apply mitigation strategies, monitor billing, and set a realistic budget.
Configure a production AWS/kops environment by creating an AWS account, choosing a region, and supplying access and secret keys to the CLI; install kops and set up an S3 bucket.
Learn how domain names and DNS routing work, set up a domain and free SSL with Let's Encrypt, and route domain traffic to your network through a load balancer.
Launch a production Hyperledger Fabric network on Kubernetes with three masters and three nodes, install cops, and configure the state store and load balancer, while pods and services come online.
Master kops commands to delete clusters, edit ig nodes and ig masters, perform rolling updates, validate the cluster, and scale the network by adding nodes and updating configurations.
Learn how to create and reference Kubernetes secrets to securely access private registries from your pods and containers, including adding a sample secret named Kotb for a private Docker registry.
Install and configure the Ingress Nginx controller to route external DNS traffic into your Kubernetes cluster, terminate SSL, and route API service and web service with permanent redirects.
Set up NFS storage for a Hyperledger Fabric network, selecting the correct VPC, creating access points and mount targets, and configuring a 100 GB persistent volume with claims.
Create folders for production config, production transaction config, checking code, and bin files, then copy the chain code and scripts to storage and verify their presence.
Generate cryptographic material, create the genesis block, set up the main channel, and start the orderers to deploy a production Hyperledger Fabric network.
Start the orderers and peers, apply the configurations, monitor pods and logs, and set up for network testing in the next video.
Join channels, install and approve chaincodes, and test the network by running parallel commands, channel updates, and queries to validate cross-organization visibility.
Develop and test the front end and back end, wire the api, and validate a production network with ssl through browser-based testing.
Master the end-to-end teardown of a Hyperledger Fabric network on Kubernetes and AWS, deleting the cluster and all resources—VPC, security groups, load balancers, subnets, volumes, and nodes—to avoid costs.
Learn how to add a new organization to a Hyperledger Fabric 2.x network on Kubernetes/AWS, update configs, deploy peers, and install and test chaincode from a production environment.
Generate and integrate a new organization into Hyperledger Fabric by updating the production config, creating folders and scripts, and deploying CA identities and config files for the MSP and channel.
Start CAs and generate the chaincode config for a new organization by creating collections files and private data in the resource configs, deploying to the server, and reviewing outputs.
Use the config transaction generator to derive the difference for a new org config and print the org definition into channels.json for insertion into the network configuration.
Update the Hyperledger Fabric network config by fetching the current channel, decoding it with jq, generating a modified envelope, and signing the update to add a new org.
Generate new org yaml files for the network by adapting existing configs, including couchdb deployments, client and peer services, and updated org names, then start the network.
Spin up the new hyperledger fabric network, join peers to channels, and package, install, approve, and commit chaincode across ibm, oracle, and hp to test resources.
Learn to build a basic hybrid ledger network on Hyperledger Fabric by generating certificates with the crypto gen, configuring channel artifacts and genesis blocks, and deploying orderers, peers, and chaincode.
Generate the first certificates for a Hyperledger Fabric network using crypto gen, configure a crypto config yaml for orders and peers in orgs, then bring up and verify the network.
Generate channel artifacts and crypto materials with configtxgen, defining organizations, MSP, policies, and channel capabilities to create genesis block and channel definitions for a multi-org network.
Start a solo hyperledger fabric orderer with docker-compose, using channel artifacts and crypto config to initialize the network. Mount MSP and artifacts, and verify genesis block and state.
Configure and start two org peers in Hyperledger Fabric, map ports, MSP, and TLS, and bootstrap gossip to enable peer communication with the order and each other.
Write the first chaincode in Go for Hyperledger Fabric, defining raw resource types and implementing store and index operations to enable data creation and retrieval on the blockchain.
Learn to join peers, create a channel, and update anchor peers in Hyperledger Fabric 2.x on Kubernetes/AWS, using cli containers to manage peers and chaincode.
Install and instantiate chaincode across peers, remove the bridge command and clean up cli containers, then write and query data to the ledger in a complete end-to-end fabric workflow.
Upgrade the chaincode on a Hyperledger Fabric network and add a query function to fetch data without adding blocks; install version 1, upgrade, and test via query.
Demonstrate querying all peers in Hyperledger Fabric to verify that they hold consistent data by using the same query function across peers and observing identical results.
learn the fundamentals to build and test a Hyperledger Fabric network by creating a Vue.js frontend, a Go backend, and dockerizing the projects for use in the network.
If you don't want to deal with front-end then just go ahead and skip this video and just download the code and run it.
Design a front-end index page that lists network items with a data table, using moment for date formatting and state mapping to render raw resources.
Create a new store route and a create view to add resources, dispatching a Vuex action that assigns an id and timestamp, with plans to connect to the server later.
Create and wire an update route in front-end, implementing get and update functions, map state from store, pass the item id via router, and navigate back after saving.
Add a delete route and a destroy function on the front-end, filtering by id and dispatching destroy, while preparing the API to remove the item from the server.
Containerize the front end with docker, npm build, and a multi-stage workflow, then serve via engine X or Apache and configure docker-compose for dev and production.
Build and push docker images by creating a docker file, tagging, and authenticating to Docker Hub. Run and test containers, including port binding, to verify the front end deployment.
Build a basic http server in go using gorilla mux, configure cors handlers, and wire a modular backend with router and server components for hyperledger services.
Create a modular router with route models, add home and status routes, and attach them with patterns and handlers; implement a static file server for a static directory.
Add a back-end users model, implement login and logout, and create CRUD routes, using Google's uuid package, bcrypt password hashing with salt, and ensure unique IDs before insertion.
Create mock user models and a versioned v1 api to power the index, update, store, and destroy endpoints for a hybrid ledger network using a mock data source.
Implement the store function to create new users with first name, last name, email, and password, perform validation, and append the new user to the mock data list.
Update the back-end users model by implementing an id-based update flow that passes data to the Hyperledger network, checks existence, and returns the updated object.
Delete a user in the back-end users model using an index-based slice removal, demonstrated with a mock user named Mark, highlighting inefficiency and upcoming routes for crud.
Build and secure user routes (index, create, update, delete) by attaching a v1 subrouter with authentication middleware using the gorilla mucks package, and define a middleware function that wraps handlers.
Create a back-end store route for users that decodes a JSON body, saves a new user in the model, and returns the stored user with a hashed password.
Implement update user endpoint: extract id from URL, decode request body, call user model update, handle errors, and wire the PUT route into the router for updates.
Learn how to implement flexible user updates with patch and put, introducing an update options struct, optional field changes, and logic to replace or patch individual user fields.
Implement a delete route for users with a destroy handler, mirroring the update flow and handling errors. Test the route with curl and verify that no users remain.
Dockerize the backend by creating a multi-stage Dockerfile, build the Go API with go build, copy static files, and deploy a lean Alpine container.
Finish back-end resource endpoints by adding raw resource types and raw resources, reuse the generate ID function, and update models and routes to support front-end integration.
Connect the front end to the back end by updating the back-end port to 3000 and fetching raw resource types from the V1 API, with development environment config.
Finish the front-end store features by implementing the get function, posting, updating, and deleting raw resources, and formatting arrival times with moment to ensure live data flow.
Finish implementing the show function in the front-end by adapting the update logic, wiring a get route, and fixing type casting for JSON marshalling.
Learn to complete a full application by creating a docker-compose.yml, configure the Kubernetes default network, build and run API and front-end services, and test the stack with npm run serve.
Dive into fabric ca by creating certificates from scratch, including intermediate certs, to enable encrypted communication across nodes and scale your Hyperledger Fabric network.
Explore how certificates enable signed requests and secure, decentralized data exchange in Hyperledger Fabric, and learn how to generate and verify encryption certificates and signatures across distributed nodes.
Build and run a dedicated fabric ca docker-compose setup with root and intermediate servers and a client to generate certificates, using separate volumes and scripts.
Develop cert generation helper scripts for a Hyperledger Fabric network on Kubernetes or AWS, enabling client enrollment, identity registration, and MSP certificate management.
Learn to generate and enroll certificates for a hyperledger fabric network using a configurable bash script, register and enroll identities, and organize tls and msp certs for multiple orgs.
Generate and assemble network artifacts for Hyperledger Fabric, starting with the genesis block and on-the-fly certificates from the crypto config, using configtx to define orderers, MSPs, and policies.
Start the orderers with new certs in a docker-compose setup, configure TLS, MSP directories, and the genesis block. Tune Kafka options and raft cluster settings to stabilize the network.
Boot up and configure peers across orgs with new certificates, ensuring DNS-named containers match certs, and enable gossip and TLS for a Hyperledger Fabric network.
Connects to clia containers to interact with the peers, creates and joins channels, installs and instantiates chaincode, and demonstrates invoking and querying data on a Hyperledger Fabric network.
Learn how to enable rich queries by integrating CouchDB as the state database for Hyperledger Fabric peers, configure Docker Compose, deploy and test, and verify data persistence and querying.
Create rich queries in your chaincode and upgrade it on peers to enable new query capabilities. Then deploy and test by running queries against the ledger.
Provide an update on the index in the chaincode, noting the iterator uses the logical key. Empty strings fetch all data, and rich queries are recommended with the index.
Learn how to add and manage indexes for chaincode in Hyperledger Fabric, using the meta IMF folder and CouchDB state db to speed rich queries and enable efficient upgrades.
Learn to build the backend connection to a Hyperledger Fabric network, enabling data display, storage, retrieval, and updates with certificates, peers, and marshaled data.
Clear out Docker and crypto config, fetch the master branch, and checkout S5 to start fresh for building the network.
Set up a Hyperledger Fabric CA network by creating the project folder, spinning up a root CA server and client via docker compose, and preparing crypto and cert-generation scripts.
Build and manage crypto material with a simplified script that generates crypto config, registers and enrolls admins and users, and creates MSP folders for orgs, peers, and orders.
Master bash scripting to enroll with the CA, export crypto material, and integrate crypto config for Hyperledger Fabric on Kubernetes.
Align crypto config, fix path issues, and generate genesis artifacts to start a Hyperledger Fabric network; configure peers, channels, and chaincode, then test with CLI and cleanup paths.
Add string IDs and a visible flag to the raw resource chaincode, and implement an update function to support update operations as part of the crud workflow.
Create a comprehensive config.yaml to connect a hyperledger fabric API, configure crypto, MSP, and peers, and test connectivity across the network.
Build and test a Hyperledger Fabric API client in Go, configure the SDK, create an org client, and perform query and invoke operations.
Connect Hyperledger Fabric SDK to API models and enable the index route by wiring endpoints, client maps, and V1 raw resources routes, verified with a curl test.
Fix csr issues by adjusting crypto and local host mappings, rebuild the network, generate certs, and implement a store method for posting and querying resources in Hyperledger Fabric.
Implement the show method to fetch a single resource via a query stream with an id selector. Use show to enable update and delete, and test with curl.
Implement the update method in chaincode by marshaling the user object to JSON and packaging it with the id for the update invocation, then test updating the weight.
Finish the destroy method by flipping the resource's visible flag to false using a show and update by ID, completing the CRUD for the Hyperledger API.
Test the crud flow by running the backend and frontend, apply a small modification to the api code, fix file watcher issues, and verify data with a visible query filter.
In this course, we will be doing a deep dive on Hyperledger Network Architecture. We will explore the background of blockchain and how it relates to Hyperledger. We will explore the difference between a public network and a private. Once we have established the basics we will construct many different types of Hyperledger networks to give you a deep understanding of all the parts of Hyperledger. We will explore Fabric CA (Certificate Authority), ectdRAFT Ordering, Genesis Block Configuration, Peers and Peer-to-Peer Interactions, State Management for CA and Peers and many more topics related to the Hyperledger ecosystem. We are also going to be building a front-end in VueJS and a back-end in GoLang. We're going to connect these to the Hyperledger network in Kubernetes and have a complete end-to-end system.
After we get a basic Hyperledger network up and running we'll establish that network on Kubernetes and eventually deploy it AWS using Kops.
After we have a working network, we'll add an Organization to an existing network.
NOTE - My teaching style is not a traditional way of teaching. It's more of a showing you how to build a network end-to-end. I focus more on the code itself. I believe this way of 'teaching' is more of a practical approach. Thanks!
Come explore Hyperledger with me!