Skip to content
This repository has been archived by the owner on Apr 11, 2023. It is now read-only.

Latest commit

 

History

History
65 lines (48 loc) · 2.32 KB

build.md

File metadata and controls

65 lines (48 loc) · 2.32 KB

Installation and Building

Prerequisites

In order to build Wallet from the source, first make sure to install the following:

Initialize and Pull Assets from Git LFS

Run the following commands:

git lfs install
git lfs pull

Test Keys

In addition, run (make generate-test-keys) to generate tls keys and import test/fixtures/keys/tls/ec-cacert.pem in your machine's cert chain (e.g. Keychain on Mac).

Connections

You also need to add the following lines to your hosts file (/etc/hosts on *NIX). This file is part of Docker networking mechanism which is primarily used to establish communication between Docker containers and the outside world via the host machine where the Docker daemon is running. See Docker's documentation for more details.

127.0.0.1 testnet.orb.local
127.0.0.1 vcwallet.trustbloc.local
127.0.0.1 wallet.trustbloc.local
127.0.0.1 mediator.trustbloc.local
127.0.0.1 uni-resolver-web.trustbloc.local
127.0.0.1 auth.trustbloc.local
127.0.0.1 auth-hydra.trustbloc.local
127.0.0.1 demo-hydra.trustbloc.local
127.0.0.1 edv.trustbloc.local
127.0.0.1 kms.trustbloc.local
127.0.0.1 file-server.trustbloc.local
127.0.0.1 demo-adapter.trustbloc.local

Running Wallet Locally

There are 2 ways to run Wallet locally:

  1. Static Build
  2. Dev Mode (hot deployment for JS & Vue components, useful for developing UI)
  • For the Static Build, run the following command:

    make start-wallet-web
  • For the Dev Mode, run the following command instead:

    make start-wallet-web-dev