Akachain - High Secure Transaction Samples
Sample applications for implementing hstx-node-sdk.
This project includes hstx-front-end, hstx-dapp, hstx-chaincode projects.
Installation
Before installing, download and install Node.js.
Installation is done using the
npm install command:
$ npm install @akachain/hstx-node-sdk@1.0.3
Quick Start
1. hstx-front-end
Vuejs Application
Go to directory
cd hstx-front-end
Install dependencies
npm install
Run in develop mode, application will be running at port 8080
npm run serve
Build production for deployment
npm run build
2. hstx-dapp
Nodejs Appplication
Go to directory
cd hstx-dapp
Grant access permission for registry https://npm.pkg.github.com/
Create file .npmrc
// Linux/MacOS command
touch .npmrc
Config registry to install akaChain SDK
// Linux/MacOS command
echo "registry=https://npm.pkg.github.com/Akachain" >> .npmrc
Get your personal access token on github:
Access to gibhub, choose settings at right-top of page. Click on Developer settings, Personal access tokens then generate your token. Copy it to replace your_token in the following command
// Linux/MacOS command
echo "//npm.pkg.github.com/:_authToken=your_token"
Install dependencies
npm install
Create and config env (enviroment variables)
Create file .env in the root of this project
Copy content of .env.example to .env file
Config env variables as you want
Run in develop mode, application will be running at port 8080
npm start
3. hstx-chaincode
Goland application
Prerequisites
akc-admin project using @akachain/akc-node-sdk