Web UI for Across.
- App: https://app.across.to
- Docs: https://docs.across.to
- Medium: https://medium.com/across-protocol
- yarn v1.22.22
- NodeJS >=v20
- Vercel CLI (35 or higher)
Clone this repository, install deps and create an .env file by running:
yarn
cp .env.example .envAdjust values in the created .env accordingly.
Start the frontend with a dev server by running:
PORT=3000 vercel devyarn buildyarn testOur e2e tests use Playwright and Synpress. You can configure some custom env vars for running e2e tests by creating a file .env.e2e that might have the following content:
# This will default to http://127.0.0.1:3000 but can be overridden to target a different deployment
E2E_DAPP_URL=
# Seed phrase to use for MetaMask when running e2e tests
E2E_MM_SEED_PHRASE=
# Password to use for MetaMask when running e2e tests
E2E_MM_PASSWORD=
# Custom Infura project id to use when running e2e tests
E2E_INFURA_ID=To run the tests locally, first make sure to have a local dev sever running:
PORT=3000 yarn devMake sure to setup the wallet cache by running
yarn synpress ./e2e/wallet-setupIf you want to start the Playwright UI run:
yarn test:e2e:headless:uiIf you want to run the tests from the CLI, run:
yarn test:e2e:headlessThe src/ampli directory can be refreshed with new tracking data by running the following steps:
- Run
yarn ampli loginto log in to Amplitude - Run
yarn ampli pull web- If Amplitude requests to create a new project, let it generate a
ampli.jsonfile.
- If Amplitude requests to create a new project, let it generate a
Have a look at CONTRIBUTING to get more information on contributions and best practices.