This is the front end application for 2-Way-Peg solution. The solution will be a web interface (this app), which integrates with a Rest API, which in turn communicates with internal services such as the blockchain node and databases. In addition, a daemon/worker will be created that will be responsible for obtaining data from the blockchain and changing the status of the transaction.
Ensure you are using the following versions of npm and node:
npm -v
9.5.1
node -v
v18.16.1
(Optionally) Use version from .nvmrc
:
nvm use
Install resolved dependencies in package-lock.json
:
npm ci
Create a .env.local
file in order to store locally the required variables for the app.
All environment variables are listed in this here.
The PowPeg app application will run on 8080 port.
npm run serve
To execute unit tests, run:
npm run test
npm run lint
To create a production build, run:
npm run build
To report a vulnerability, please use the vulnerability reporting guideline for details on how to do it.
To know how to add your own wallet in the pegin page, visit how to add new wallet, step by step for details on how to do it.