Sample applications for implementing hstx-node-sdk.
This project includes hstx-front-end, hstx-dapp projects.
Before installing, download and install Node.js.
Vuejs Application
Go to directory
cd hstx-front-endInstall dependencies
npm installRun in develop mode, application will be running at port 8080
npm run serveBuild production for deployment
npm run buildNodejs Appplication
Go to directory
cd hstx-dappGrant access permission for registry https://npm.pkg.github.com/
Create file .npmrc
// Linux/MacOS command
touch .npmrcConfig registry to install akaChain SDK
// Linux/MacOS command
echo "registry=https://npm.pkg.github.com/Akachain" >> .npmrcGet 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 installCreate 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