This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
npm install | |
# Start a blockchain network locally | |
npm run env:restart | |
# Install the smart contract | |
npm run cc:start | |
# Start the oracle daemon [ignore npx if you don't use npx] | |
npx lerna run start --scope conv-oracle --stream |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
git clone https://github.com/worldsibu/convector-oracle | |
cd convector-oracle |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Start your local blockchain network | |
npm run env:restart | |
# Install the smart contract | |
npm run cc:start -- car | |
# Start the web server (remove npx if you don't have it installed) | |
npx lerna run start --scope server --stream | |
# Trigger a web request (the first transaction usually takes a few seconds depending on your internet connection) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[ | |
{ | |
"function": "create", | |
"verb": "post", | |
"controller": "CarController" | |
}, | |
{ | |
"function": "get", | |
"verb": "get", | |
"controller": "CarController" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
conv-rest-api generate api -c car -f ./org1.car.config.json | |
# Compile your project (if you are not using npx just run lerna bootstrap) | |
npx lerna bootstrap |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import * as yup from 'yup'; | |
import { ChaincodeTx } from '@worldsibu/convector-platform-fabric'; | |
import { | |
Controller, | |
ConvectorController, | |
Invokable, | |
Param | |
} from '@worldsibu/convector-core'; | |
import { Car } from './car.model'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
conv new car | |
cd car | |
npm install |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Install or update the Convector CLI | |
npm install -g @worldsibu/convector-cli | |
# Install the conv-rest-api util | |
npm install -g @worldsibu/conv-rest-api |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# i.e.: npx lerna add participant-cc --scope person-cc --include-filtered-dependencies | |
npx lerna add <package-to-include> --scope <target-package> --include-filtered-dependencies |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
export * from './participant.model'; | |
export * from './participant.controller'; |
NewerOlder