https://github.com/worldsibu/convector-example-marketplace
A marketplace example on Convector Framework
https://github.com/worldsibu/convector-example-marketplace
convector
Last synced: about 1 year ago
JSON representation
A marketplace example on Convector Framework
- Host: GitHub
- URL: https://github.com/worldsibu/convector-example-marketplace
- Owner: worldsibu
- Created: 2018-06-30T19:48:19.000Z (almost 8 years ago)
- Default Branch: master
- Last Pushed: 2018-07-22T03:13:54.000Z (almost 8 years ago)
- Last Synced: 2025-01-05T06:22:12.771Z (over 1 year ago)
- Topics: convector
- Language: TypeScript
- Size: 162 KB
- Stars: 2
- Watchers: 3
- Forks: 2
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Convector Example - Marketplace
This is a [Convector](http://worldsibu.com/convector/) example implementing a marketplace contract.
If you're looking for a tutorial on how to set up your own project, **refer to the [tutorial](https://github.com/worldsibu/convector-example-marketplace/blob/master/TUTORIAL.md)** in this repository.
## Getting started
Run `npm i` to install all the neccesary dependencies.
Run `npm run test` to run the unit tests.
Run `npm run restart` to start a dev environment and install the chaincode in the blockchain.
Run `npm run cc:invoke -- org1 -u user1 product init '{"id":"1","name":"Bananas","pictureUrl":"http://example.com/bananas.jpg","description":"Bananas","price":100}'` with the environment running to create a product and assign it to the Org1@user1
Run `npm run cc:invoke -- org2 -u user2 product transfer 1 100` with the environment running to transfer the product to Org2@user2