The code is from fabric-sdk-node repository from e2e integration test code.
git clone https://github.com/asararatnakar/fabric_v1_nodesample
cd fabric_v1_nodesample
npm install
cd fabric_v1_nodesample/artifacts/
docker-compose up -d
cd fabric_v1_nodesample/app
CREATE CHANNEL
node create-channel.js
JOIN CHANNEL
node join-channel.js
INSTALL CHAINCODE
node install-chaincode.js
INSTANTIATE CHAINCODE
node instantiate-chaincode.js
INVOKE
node invoke-transaction.js
QUERY
node query.js
cd fabric_v1_nodesample/
./runApp.sh