Git Product home page Git Product logo

2wp-app's Introduction

2wp-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

npm install

Environment variables

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

All environment variables are listed in this here.

Development mode

The 2wp-app application will run on 8080 port.

Using npm

npm run serve

Check npm and node versions

npm -version
6.14.16
node -v
v14.19.1

Deployment

docker-compose up

Testing

To execute unit tests, run:

npm run test:unit

It should execute 6 test suites with 28 tests in total.

Like this example:

 PASS  tests/unit/PowPegAddressUtils.spec.ts
 PASS  tests/unit/SatoshiBig.spec.ts
 PASS  tests/unit/utils.spec.ts
 PASS  tests/unit/OpReturnUtils.spec.ts
 PASS  tests/unit/txSummary.spec.ts
 PASS  tests/unit/ApiService.spec.ts

Test Suites: 6 passed, 6 total
Tests:       28 passed, 28 total
Snapshots:   0 total
Time:        2.809s

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.

2wp-app's People

Contributors

alepc253 avatar alexjavabraz avatar annipi avatar bcodesido avatar cazdemun avatar crove-iov avatar hard75 avatar jeremy-then avatar josedahlquist avatar juan-rsk avatar leoiovlabs avatar lucasvuotto avatar mesirendon avatar pamgonzalez avatar ronaldsg20 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.