fabric-samples/full-stack-asset-transfer-guide/applications/rest-api
Mark S. Lewis c5539270f6
Update runtime and tool versions (#1354)
- Node latest LTS
- Go latest stable
- Fabric 2.5.14, 3.1.3
- Just 1.43.0
- k9s 0.50.15
- Kind 0.30.0
- yq 4.48.1
- nvm 0.40.3

This addresses build breakages due to back-level versions.

Signed-off-by: Mark S. Lewis <Mark.S.Lewis@outlook.com>
2025-10-21 13:04:55 -04:00
..
src Explicitly specify hash in client applications 2024-10-07 12:25:40 -04:00
.gitignore Moves the Full Stack Asset Transfer Development Guide to fabric-samples (#852) 2022-11-10 10:40:27 -05:00
asset-transfer.postman_collection.json Moves the Full Stack Asset Transfer Development Guide to fabric-samples (#852) 2022-11-10 10:40:27 -05:00
deployment.yaml Moves the Full Stack Asset Transfer Development Guide to fabric-samples (#852) 2022-11-10 10:40:27 -05:00
Dockerfile Update runtime and tool versions (#1354) 2025-10-21 13:04:55 -04:00
LICENSE Moves the Full Stack Asset Transfer Development Guide to fabric-samples (#852) 2022-11-10 10:40:27 -05:00
package.json Update fabric-gateway to v1.8.0 (#1336) 2025-07-25 17:10:49 +09:00
README.md Moves the Full Stack Asset Transfer Development Guide to fabric-samples (#852) 2022-11-10 10:40:27 -05:00
renovate.json Moves the Full Stack Asset Transfer Development Guide to fabric-samples (#852) 2022-11-10 10:40:27 -05:00
tsconfig.json Use fabric-gateway v1.4 2023-10-25 17:30:29 +09:00

Make sure all the certificates are generated as per the documentation in the below link https://github.com/hyperledgendary/full-stack-asset-transfer-guide/blob/main/docs/CloudReady/40-bananas.md

#Local development

npm install npm run prod

Import the postman collections and test the apis

#Kubernetes development

Step-1 Build docker image & Tag

docker build -t localhost:5000/rest-api .

Step-2 Push docker image to local registary

docker push localhost:5000/rest-api

Step-3 Create secrets for the certicates

kubectl create secret generic client-secret --from-file=keyPath=/home/ramdisk/my-full-stack/infrastructure/sample-network/temp/enrollments/org1/users/org1user/msp/keystore/key.pem --from-file=certPath=/home/ramdisk/my-full-stack/infrastructure/sample-network/temp/enrollments/org1/users/org1user/msp/signcerts/cert.pem --from-file=tlsCertPath=/home/ramdisk/my-full-stack/infrastructure/sample-network/temp/channel-msp/peerOrganizations/org1/msp/tlscacerts/tlsca-signcert.pem -n test-network

please replace the path of /home/ramdisk/my-full-stack/infrastructure/sample-network/temp with your system path

Step-4 Deploy the pods to k8s

kubectl apply -f deployment.yaml -n test-network

Step-5 Testing API's

Import the apis into postman and test the apis

create & list apis are tested.reminaing apis need be implemented