Skip to content

rsksmart/2wp-app

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Quality Gate Status

OpenSSF Scorecard

Releases

PowPeg app

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.

Project setup

Check npm and node versions

Ensure you are using the following versions of npm and node:

npm -v
9.5.1
node -v
v18.16.1

nvm

(Optionally) Use version from .nvmrc:

nvm use

Installation

Install resolved dependencies in package-lock.json:

npm ci

Environment variables

Create a .env.local file in order to store locally the required variables for the app.

All environment variables are listed in this here.

Development mode

The PowPeg app application will run on 8080 port.

npm run serve

Testing

To execute unit tests, run:

npm run test

Running Lint

npm run lint 

Production mode

To create a production build, run:

npm run build

Report Security Vulnerabilities

To report a vulnerability, please use the vulnerability reporting guideline for details on how to do it.

Adding your own wallet for pegin

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.