garethfuller / balancer-fyi-web

An alternative UI for exploring and interacting with Balancer pools

Home Page:https://balancer.fyi

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Introduction

This repo is the frontend for balancer.fyi. Balancer FYI is an alternative UI for exploring and interacting with Balancer pools.

Development

To setup the development environment first clone the repo:

git clone https://github.com/garethfuller/balancer-fyi-web.git && cd balancer-fyi-web

Install dependencies:

yarn install

Start the app:

yarn dev

The app should be live at http://localhost:3000

Docker

If you'd rather spin up the app in a docker container:

docker-compose up

The app should be live at http://localhost:3000

Deployment (CI/CD)

On push or merge to the main branch the CI/CD workflows are triggered. That is:

  1. Linting and tests are run.
  2. The production Docker image is built.
  3. The Docker image is pushed to DockerHub.
  4. The Kubernetes deployment.yml manifest is updated and applied to the cluster.

Manual Deployments

Deployments can be triggered manually from the Actions tab.

To trigger a re-deployment of the latest commit on the main branch:

  1. Select Production CI/CD
  2. Select Run workflow
  3. Click Run workflow button

Rollbacks

Rollbacks to a specific commit can be triggered manually. To trigger a rollback deployment:

  1. Select Rollback CI/CD
  2. Select Run worflow
  3. Paste in the commit SHA you want to rollback to
  4. Click Run workflow button

Dependencies

The following is a list of relevant and important dependencies:

Design System

The design system is derived from the Tailwind configuration file. Please see the docs for configuration options.

In development, a visual library of the design system can be accessed at localhost:3000/_tailwind

TODO

  • Add tests for critical components. e.g. AuthBtn.vue
  • Add filtering functionality
  • Add pool pages
  • Add create pool functionality
  • Better abstraction for subgraph queries

About

An alternative UI for exploring and interacting with Balancer pools

https://balancer.fyi

License:GNU General Public License v3.0


Languages

Language:Vue 59.3%Language:TypeScript 30.6%Language:JavaScript 8.5%Language:Dockerfile 1.6%