This project was created as a hobby project and only for learning and experimental purposes.
Gin Fabric Connector is a development project created to facilitate interactions with the Hyperledger Fabric Test-Network. It provides a straightforward REST API built using Gin and Auth0, enabling users to easily send transactions to the chaincodes, as an alternative to the Fabric CLI tools. It also implements the fabric-gateway to communicate with peers.
As this project is meant to be used with the fabric test-network, you'll need to deploy the network and set some environment variables before starting the server.
This is generally done using the network.sh script:
# From your test-network folder
./network.sh up
FABRIC_CONNECTOR_BASEDIR
: Your fabric-samples/test-network repository folder.FABRIC_CONNECTOR_AUTH0_AUDIENCE
: Identifier of your app in Auth0.FABRIC_CONNECTOR_AUTH0_DOMAIN
: Your Auth0 domain.
Every config value can be set independently if your setup is not standard (i.e. PEER_TLS_CERT
)
To start the server, run the following command from the project root:
go run cmd/main.go
- Async TXs
- Private Data TXs
- Testing
- Linting
- Dockerfile
- Toggle auth
- Error handling
- Logging
- Dynamic config
- K8s template
- Versioning