A Vue.js project
# install dependencies
npm install
# serve with hot reload at localhost:8080
npm run dev
# build for production with minification
npm run build
# build for production and view the bundle analyzer report
npm run build --report
For a detailed explanation on how things work, check out the guide and docs for vue-loader.
$ tree
└── obox-exchange
├── build
└── config
└── contracts
└── config
└── contracts
ontsctf.py
└── src
└── static
└── wallet
build
Files for building vue project.
config
Configuration files.
contracts
Diretory for smart contracts related files. config
contains configuration files for deploying and invoking smart contracts. contracts
contains smartc contract source codes, avm and abi files generated after comiple.
src
Vue project source codes.
static
Static files
wallet
Wallet file.
ontsctf.py is used to compile, deploy and test smart contracts。
npm run sc-compile
It will generate the abi and avm files and put them in /contracts/contracts directory.
npm run sc-deploy
Smart contract deployment needs the configuration file deploy.json and put it in /contracts/config/ directory.
npm run sc-invoke
Testing sc methods needs the configuration file invoke.json and put it in /contracts/config/ directory.