0% found this document useful (0 votes)
3 views

Requirements Programming v00

The document describes requirements for developing a platform using Angular and Hyperledger Fabric to buy and sell computers. Sellers can create offers which are implemented as smart contracts. The frontend must allow users to view offers, create wallets, and make purchases. The backend must implement wallets, organizations, and smart contracts on Hyperledger Fabric to facilitate the offers and sales.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
3 views

Requirements Programming v00

The document describes requirements for developing a platform using Angular and Hyperledger Fabric to buy and sell computers. Sellers can create offers which are implemented as smart contracts. The frontend must allow users to view offers, create wallets, and make purchases. The backend must implement wallets, organizations, and smart contracts on Hyperledger Fabric to facilitate the offers and sales.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
You are on page 1/ 11

Tech requirements – Hypeledger fabric

developer with angular skills


We provide a platform (front end) to buy and sell computers. Sellers have to provide offers from products. These offers

are going to be valid once the requirements have been met. E.g 100 computers have to be sold in 20 days. If this

requirement is not met, the offer has to be anulled and the money will be refunded to the buyers e-wallets. This

mechanism will be implemented in the backend through Hyperledger (backend). Hyperledger Fabric provides the

complete infrastructure for smart contracts, which are used when a buyer want to participate in the offer by buying one of

the products.

The programmer will have to provide specially the backend solution in a high quality. The most important part is that there

is a connection between frontEnd and BackEnd . The front end must have a acceptable quality.

HTML (FrontEnd) -> Angular


Connection betweend FrontEnd and BackEnd through HTTP
*Info for the
Hyperledger programmer
(BackEnd) -> JS will be highlighted in yellow:
Specific JOB (Slides 2 & 3)

Hyperledger (BackEnd) - Javascript


- Peers & organisations for sellers and buyers: it must exist an architecture with peers that
represent buyers and sellers.
- Wallets: ewallets have to be added to the hyperledger when a peer (user) creates a wallet
under the wallet tab. The e-wallets contain USDCs, which is the cryptocurrency used to buy
laptops.
- SmartContracts: A smart contract has to be created when the buyer buys a laptop. If the
„deal“ has not fullfilled the requirements e.g. the laptops to be sold has not reached the
amount expected over the time limit, the contract has to be cancelled. The crypto money will
be transfer from one ewallet to another when the deal has be closed (the deal has been
sucessfull e.g the amount of computers have been sold under the time limit)
HTML (FrontEnd) - Initial page

Initial Page: Create menu based on following tabs


(See HTML (FrontEnd) - Initialpage)
- Dashboard - for seller will be empty. For buyer, required (1)
- My Wallet (2)
- Portfolio (3)
- My Account (dummy data, where user specifies if seller or buyer)
- How To (will be empty. Not part of this request)

(1) (2) and (3) are the mínimum requirements of the FrontEnd
Explanation & details
about slide 2 and 3
HTML (FrontEnd) - Initial page
- Provide user information („User 1)
extracted from „My Account tab“

- ‚Dashboard‘ should be highlighted


and content should appear as initial
page.
HTML (FrontEnd) -> Portfolio (Seller)
Here the seller insert the products that he will like to sell.
By clicking the „create offer“ button, it is possible to add a line to the table.
Create This can be implemented also as a pop-up window.
offer „Edit offer“ enable the possibility to edit the offer. This is only possible if
the offer is not running.

Product Units Deal time Start date Status


Laptop A 100 20 days 03.02.2019 To start
Edit offer

Laptop B 80 15 day 15.11.2019 Closed


Laptop C 150 45 days 28.12.2019 Rejected

*Open:
*Open: Days
Days until
until the
the offer
offer ends
ends >0
>0 oror stock
stock is
is still
still available
available
*Rejected:
*Rejected: days
days <0
<0 but
but stock
stock is
is still
still >0.
>0.
*Running:
*Running: days
days <0
<0 and
and stock
stock <0.
<0. Laptop
Laptop isis being
being dispached.
dispached.
*Closed:
*Closed: Delivery
Delivery done.
done.
*To
*To start:
start: The
The offer
offer is
is created,
created, however
however the the start
start date
date is
is in
in the
the
future.
future.
HTML (FrontEnd) -> Dashboard
(Buyer)
This should display the caracteristics of the products that are
being selled
COMPANY A COMPANY B

PRODUCT – Apple X PRODUCT – HP

Stock available: 250 Stock available: 100


Days left: 10 Days left: 2
Goal: 300 Get Info Goal: 300 Get Info

If the user clicks on „Get Info“, a temporary page will be loaded


which contains the product is described in more detail.
HTML (FrontEnd) - Dashboard
(Buyer) after clicking product
- The buy button should be COMPANY A
deactivated if the user has
Nr-Laptops to buy: 100
not fullfiled the informations PRODUCT – Apple X
in „my account“ tab.
- Popup: A popup will appear Total cost : 20000
once the selling contract has
been effective with „contract Stock available: 250 units
id“ information and Days left: 10
time_stamp. Goal: 300 units Buy
- Once the buyer press the Price per unit: 600 €

button, a selling contract will Specifications products:


- Size:
be placed under „portfolio“. - Cost normaly

Contract id: 711234705324, time_stamp = 08.01.2020


HTML (FrontEnd) -> Portfolio (Buyer)
- This is an overview of the contracts already made in the past and theirs
status, units that were bought, from which company and the contract Ids.

Contract id Company Product Units Status


787923748901236 Company A Laptop A 100 Open

787923748934213 Company B Laptop B 50 Closed


412351345667889 Company c Laptop C 120 Rejected

*Open: Days until the offer ends >0 or stock is still available
*Rejected: days <0 but stock is still >0.
*Running: days <0 and stock <0. Laptop is being dispached.
*Closed: Delivery done.
HTML (FrontEnd) -> Wallet (Buyer)
- A wallet is required for buying the products.
Wallet-Nr*
Do you have a wallet? Ifnot create one here! - „Create your wallet“

(after clicking on „here“ the form below should appear. )


Form for new wallet:

Email
Password

CREATE

after clicking on „Create“, a wallet should be created with


hyperledger
HTML (FrontEnd) -> Wallet(Seller)
- A wallet is required for selling the products. „Create your wallet“

As a seller, it doesn‘t exist the posibility to insert own wallet.


A new wallet has to be created.
after clicking on „Create“, a wallet should be created with
hyperledger

Form for new wallet:

Email
Password

CREATE

You might also like