/concept-twc-react

Proof of concept integration wasm trust wallet core in react js app

Primary LanguageJavaScript

Proof of Concept (React + Trust Wallet Core)

Tested on a Linux Ubuntu machine

The Trustwallet project recently added beta support for WASM (WebAssembly) to its wallet-core implementation.

Based on the "create react app" tutorial found here: https://create-react-app.dev/docs/getting-started/

The goal is to quickly explore the support of the WASM Trustwallet core in react js apps (with webpack and babel).

Setup

Install dependencies.

yarn

Run

Runs the app in the development mode (using webpack). Open http://localhost:3000 to view it in your browser.

yarn serve

Build

Builds the app for production to the build/ folder. See the section about deployment for more information.

yarn build

Optionally, the build can be tested with nginx (in Docker). Open http://localhost:8080 to view it in your browser.

./run_ngnix.sh

Open Issues