NWCBF Letter of Credit Business Process Programming Paper You’ll run the web browser-based application to create and manage the Letter of Credit business process. BLCN532 Lab 4
Letter of Credit
V2.0
Introduction
In previous labs, you looked at the blockchain development environment, smart contracts, and
middleware. In this lab, you’ll use and explore a real application. You’ll run the web browser-based
application to create and manage the Letter of Credit business process.
Lab Deliverables:
To complete this lab, you must create a Lab Report file and submit the file in iLearn. The Lab Report file
must be a Microsoft Word format (.docx), and have the filename with the following format:
BLCN532_SECTION_STUDENTID_LASTNAME_FIRSTNAME_Lab04.docx
•
•
•
•
SECTION is the section number of your current course (2 digits)
STUDENTID is your student ID number (with leading zeros)
LASTNAME is your last name
FIRSTNAME is your first name
To get started, create a Microsoft Word document (.docx) with the correct filename for this lab. You’ll
be asked to enter text and paste screenshots into the lab report file.
NOTE: All screenshots MUST be readable. Use the Ubuntu Screen Capture utility (see the lab video.)
Make sure that you label each screenshot (i.e. Step 2.1.3) and provide screenshots in order. For
commands that produce lots of output, I only want to see the last full screen when the command
finishes. Provide FULL screenshots, NOT cropped images.
SECTION 1: Extending your development environment and installing the
Letter of Credit software
Step 1.1: Install the Letter of Credit sample application
First, you need to fork the sample applications repository on github.com.
1.
2.
3.
4.
5.
6.
7.
Open PowerShell
PS %HOME%> cd vagranthyperledger
PS %HOME%vagrantHyperledger> vagrant up
Login t your Linux VM and open a new Terminal window
In a browser go to: https://github.com/hyperledger/composer-sample-applications
Sign up or log in (use the same GIT ID you set up or used in Lab 01.)
Click Fork
Next, you’ll launch and log into your development environment.
8.
9.
10.
11.
12.
13.
14.
15.
16.
17.
Launch Firefox [[IN YOUR Ubuntu VM]] (Click the Firefox shortcut on the left taskbar.)
Go to the Blackboard site (ucumberlands.blackboard.com) and login.
Navigate to this course (BLCN532) -> Content for this week, Lab04.
Download these 4 tar.gz files. (Files will download to /home/vagrant/Downloads by default)
a. hyperledger-composer.tar.gz
b. hyperledger-composer-cli.tar.gz
c. hyperledger-composer-rest-server.tar.gz
d. hyperledger-letters.of-credit.tar.gz
Click Search your computer -> type terminal, then click Terminal
$ cd $GOPATH/src/github.com/hyperledger
$ git clone https://github.com/YOUR_GIT_ID/composer-sample-applications.git
a. Make sure that you use YOUR GIT ID in the above command
$ cd composer-sample-applications/packages/letters-of-credit
Create a screenshot of the results of steps 12 – 14 and paste it into your Lab Report File
EDIT THE installer script ***
a. $ nano ./installer/install.sh
b. Find the four lines that start with ‘docker pull’ (They should be just after the comments
at the top of the file.)
c. Add a hashtag to the beginning of each of the 4 lines to turn the commands into
comments.
d. Add 4 new lines to load the Docker images you downloaded in step 10 below the 4
comments. Your file should now look like this:
#docker pull hyperledger/composer-playground:latest
#docker pull hyperledger/composer-cli:latest
#docker pull hyperledger/composer-rest-server:latest
#docker pull hyperledger/letters-of-credit:latest
docker load -i ~/Downloads/hyperledger-composer-playground.tar.gz
docker load -i ~/Downloads/hyperledger-composer-cli.tar.gz
docker load -i ~/Downloads/hyperledger-composer-rest-server.tar.gz
docker load -i ~/Downloads/hyperledger-letters-of-credit.tar.gz
NOTE: In the 4 docker load commands above, there is a SPACE after -i
18. $ ./installer/install.sh
19. Create a screenshot of the results of step 18 and paste it into your Lab Report File.
Step 1.2: Run the Letter of Credit application
Next, you’ll run the application and follow the process of managing a Letter of Credit.
1.
2.
3.
4.
5.
6.
7.
8.
9.
10.
11.
12.
13.
14.
15.
16.
17.
18.
19.
20.
21.
22.
(Chapter 7 Step 1) Click the Alice tab.
Click Apply for a Letter of Credit
Click Edit
Enter the TYPE, QUANTITY, and PRICE PER UNIT data from Step 2 in Chapter 7.
a. Instead of “Computer” for the TYPE field, enter YOUR_FIRST_NAME’s computer
b. (For example, mine would be “Michael’s computer”)
Click Save
Create a screenshot that shows the TYPE, QUANTITY, and PRICE PER UNIT data you just saved,
and paste it into your Lab Report File.
Click Start approval process, then click yes
Click the Matias tab
Click the Ref number of the Letter of Credit Application
Click I accept the application, then click yes
Create a screenshot that shows the Letter of Credit Status, and paste it into your Lab Report
File.
Click the Ella tab
Follow the instructions in your text (Chapter 7) to accept the application
Click on the Bob tab
Follow the instructions in your text (Chapter 7) to accept the application
Click the button to Ship Product (select the invoice to upload)
Create a screenshot that shows that the product has been shipped and paste it into your Lab
Report File.
Click the Alice tab
Click the button to Receive Product
Click the Matias tab
Click the Ref number of the Letter of Credit Application
Click Ready for Payment, then click yes
23.
24.
25.
26.
27.
Click the Ella tab
Click the Ref number of the Letter of Credit Application
Click Close this Letter of Credit, then click yes
Click the Bob tab
Create a screenshot that shows that the payment has been made and paste it into your Lab
Report File.
Section 2: Wrapping up
Now that you have installed and run the Letter of Credit application, you need to properly shutdown
your business network.
1.
2.
3.
4.
5.
6.
Close the web browser
Exit from your Linux sessions
$ exit
In Windows PowerShell, shut down your Hyperledger virtual machine:
PS %HOME%vagrantHyperledger> vagrant halt
Create a snapshot (NOT A SCREENSHOT) of your Ubuntu VM in VirtualBox. This allows you to
easily restore to this point if you ever need to “undo” subsequent steps and return to a known
point.
You should have 6 screenshots in your Lab Report File. Save your file and submit it in iLearn as a file
attachment for the Lab 4 assignment.
Congratulations! You have complete lab 4.
Purchase answer to see full
attachment
Economic Debate- Progressive Income Tax For this Economic Debate, we are going to discuss the…
TOPIC: Going Global Discussion Thread 1 (initial post due Wednesday for full credit) Please note:…
Assignment Topic This week will culminate in the creation of a narrated PowerPoint to create…
The Assignment must be submitted on Blackboard (WORD format only) via allocated folder. Assignments submitted…
you need to post your 2-page information flier to share with your Final Project Group.…
discussion: Discuss the methods used at your company to measure and ensure quality products and…