Skip to main content

Frontend: setup and run

Start the client application

Finally, let's set up and start the front-end application.

cd client
npm install

Copy .env_example file to .env.

cp .env.example .env

Update the configuration.

.env
NEXT_PUBLIC_BLOCKCHAIN_RID=<DAPP_BRID> // the brid from the deploy the dapp step
NEXT_PUBLIC_NODE_API_URL=http://localhost:7740

DAPP_BRID - the brid from the deploy the dapp step

Start the development server:

npm run dev

Access the application

Once the server is running, you can access the application in your browser:

  1. Open http://localhost:3000.
  2. Connect your MetaMask wallet.
  3. Login or register a new account.
  4. Create a wallet password for private key encryption.
  5. You are now ready to use private transfers!

In the next sections, we will explore the different parts of the application in more detail.