/fabric-sdk-ts-tester

This repo is my test application for HLF network.

Primary LanguageTypeScript

fabric-sdk-tester

Prerequisites

dotenv (ex)

modify .env file according to your network environment.

CCP_PATH=<path to connection profile>
MSP_ID=Org1MSP
ADMIN_ID=admin
ADMIN_SECRET=adminpw
CLIENT_ID=appUser
CERTIFICATE_AUTHORITIES=ca.org1.example.com
AFFILIATION=org1.department1
CHANNEL=mychannel
CHAINCODE_NAME=<chaincode id>

# check the etc/hosts
AS_LOCALHOST=false

# ACCOUNT is for erc-20 token
ACCOUNT=9261cabB98BFA4C09C069ce6CbAbc5f2696922F5
  • AS_LOCALHOST docs

    Convert discovered host addresses to be 'localhost'. Will be needed when running a docker composed fabric network on the local system; otherwise should be disabled

Execute

  1. install packages

    npm install
  2. run

    npm run dev