- Install Node.js for your platform
- Install Node Version Manager (nvm) to setup the correct Node version for the project.
- use node version 18
- Install Yarn (version 1) - Package manager
-
Clone the Arbitrum token bridge repository from Github onto your local machine
$ git clone https://github.com/umershaikh123/Complere-Bridge.git
-
Use the Node version as per project settings to avoid any errors before project installation.
$ nvm use <NODE_VERSION_18>
-
Install dependencies in all packages using yarn in root of project.
$ yarn
-
Set env vars:
-
Copy the existing env.local.sample file present.
$ cp ./packages/arb-token-bridge-ui/.env.local.sample ./packages/arb-token-bridge-ui/.env
-
Set
NEXT_PUBLIC_WALLETCONNECT_PROJECT_ID
to your WalletConnect project ID. You can create a new project on the WalletConnect dashboard. -
set layer 3 orbit chain urls:
NEXT_PUBLIC_L3_RPC
NEXT_PUBLIC_L3_EXPLORER
NEXT_PUBLIC_COMPLARE_LAYER2_SUBGRAPH
NEXT_PUBLIC_BASESEPOLIA_LAYER1_SUBGRAPH
NEXT_PUBLIC_BASE_SEPOLIA_RPC_URL
#optionalNEXT_PUBLIC_INFURA_KEY
#optional , needed for previous arbitrum netowrks
-
-
Build the project and internal packages
$ yarn build
-
Finally, running the project
-
(back in root dir:)
$ yarn run dev
-
Visit
http://localhost:3000/
-