Git Product home page Git Product logo

frontend-v2's Introduction

Across v2 frontend

Web UI for V2 of the Across Protocol.

Development

Local setup

Clone this repository, install deps and create an .env.local file by running:

yarn
cp .env.example .env.local

Adjust values in the created .env.local accordingly.

Start dev server

Start the frontend with a dev server by running:

yarn start

Build production bundle

yarn build

Run unit tests

yarn test

Run e2e tests

Our e2e tests rely on a local hardhat node that forks mainnet. First, set the env var HARDHAT_INFURA_ID in your .env file and make sure to run such a node before starting the tests:

yarn hardhat:node

We use cypress for handling e2e tests. To run the tests locally, first make sure to have a local dev sever running:

yarn start

If you want to start the cypress UI run:

yarn cypress:open

If you want to run the tests from the CLI, run:

yarn cypress:run

Per default cypress expects the frontend running on http://localhost:3000. To change that run:

CYPRESS_BASE_URL=http://localhost:3333 yarn cypress:run

Important CSS values

Z-index

Navbar - 1000 Toast - 99999 Modal - 99998

Contributing

Have a look at CONTRIBUTING to get more information on contributions and best practices.

Pull Data from Amplitude

The src/ampli directory can be refreshed with new tracking data by running the following steps:

  1. Run yarn ampli login to log in to Amplitude
  2. Run yarn ampli pull web
    1. If Amplitude requests to create a new project, let it generate a ampli.json file.

frontend-v2's People

Contributors

james-a-morris avatar dohaki avatar tulun avatar daywiss avatar mrice32 avatar nicholaspai avatar amateima avatar pxrl avatar dependabot[bot] avatar kevinuma avatar evaldofelipe avatar alter-eggo avatar 0xzoz avatar hlambur avatar pgebheim avatar mrbahama1 avatar udit-takkar avatar zjhmale avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.