Skip to content

Smart-Contract-Modelling-uOttawa/SymboleoAC-Application-API

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Installation

# node version v16.16.0
$ npm install

Running the app

#  to enroll and admin
$ go to app.js comment meatSale(): 298 , appRegisterAndEnrollUser(): 322 and uncomment appEnrollAdmin(): 321 then run below command

$ node app.js


#  to enroll and register buyer, seller

# go to app.js comment meatSale(): 298 , appEnrollAdmin(): 321 and uncomment appRegisterAndEnrollUser(): 322, change name of Org1UserId: 93 like buyer1, seller1, shipper1.

# `in CAUtil.js 
# for buyer
const attributes = `[{name: 'HF.role', value: 'party1_buyer', ecert:true}, {name: 'department', value: 'finance', ecert:true}]`;

# for seller
const attributes = `[{name: 'HF.role', value: 'party1_seller', ecert:true}, {name: 'department', value: 'finance', ecert:true}]`;

#then run below command

$ node app.js

# run the chaindoe 
$ comment appEnrollAdmin(), appRegisterAndEnrollUser() and uncomment meatSale() function then run below

$ node app.js

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors