Chromia
Start Building

10 / 16Module 3: The frontend applicationIntermediate

Part 1: Prepare the frontend application

Work from the frontend application's root folder, the one that contains package.json.

Install dependencies

Install every required package with pnpm:

bash
pnpm install

Configure the environment

Copy .env.example to a new .env file, then set the correct values:

bash
NEXT_PUBLIC_NODE_URL=http://localhost:7740NEXT_PUBLIC_BRID=<Your_BRID_for_the_Dapp>
  • NEXT_PUBLIC_NODE_URL – the address of the Chromia blockchain node.

  • NEXT_PUBLIC_BRID – the BRID of your dapp, whether it runs locally or on a remote node.

Running the application

With the dependencies installed and .env configured, start the application locally:

bash
pnpm dev

Open http://localhost:3000 to use the app.

Written for this site from Chromia’s public course. Code samples are the course’s own.