
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.
Understand the cost implications of a production grid network on AWS for Hyperledger Fabric, including pricing models, monthly spend, and domain and SSL expenses.
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.
https://github.com/happilymarrieddad/k8s-hyperledger-fabric-2.2
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.
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.
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.
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.
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 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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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 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.
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.
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.
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!