Skip to content

Frontend Vue app for Balancer exchange and pool management.

License

Notifications You must be signed in to change notification settings

ApeSwapFinance/balancer-frontend-v2

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ApeSwap Balancer

Balancer Frontend App (v2)

Frontend Vue app for Balancer exchange and pool management.

This repository contains the code for the ApeSwap DEX V2. This project is a fork of balancer-frontend-v2. For more further information please see their detailed documentation as we build out ours.

Pulling Upstream Changes

Balancer V2 Frontend is an actively maintained repository. The unaltered Balancer V2 code lives in the balancer-v2 branch. To pull in new updates to that branch run the following:

git checkout balancer-v2
git fetch upstream
git merge upstream/master

Now the new updates will be in the balancer-v2 branch. These updates can then be merged into a feature branch off of main reconcile the updates.

git checkout main
git checkout -b feature/<feature-name>
git merge balancer-v2

Development

To setup the development environment first clone the repo:

git clone https://github.com/balancer-labs/frontend-v2.git && cd frontend-v2

Local env

Install dependencies:

npm install

Start the app:

npm run serve

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

Docker

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

docker-compose up

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

Change app network

To change your local development app network, update the network key for VUE_APP_NETWORK in .env.development. Available networks:

1 - Mainnet
56 - BNB Chain
97 - BNB Chain Testnet

Update Application Config

Configuration settings for this application are managed in multiple locations. Use the legend below to make updates as needed.

Self-Hosting

As we believe in decentralization at all layers, we've made it easy to host your own Balancer Frontend.

Docker Production Image

We've created a production ready docker image that connects to Mainnet and runs a pre-built version of Balancer Frontend-v2 using nginx. You'll need your own Infura, Alchemy, and Blocknative API keys in order to fetch data and make trades.

You can also specify your Portis Dapp ID if you wish to use that service, otherwise it will use a default key.

Here's an example of how to run the container. This can also be found in scripts/run-docker.sh.

docker run \ 
  -e INFURA_PROJECT_ID=   \ # Required
  -e ALCHEMY_KEY=         \ # Required
  -e BLOCKNATIVE_DAPP_ID= \ # Required
  -e PORTIS_DAPP_ID=      \ # Optional
  balancerfi/frontend-v2

Digital Ocean Deploy

Click the button below to deploy the frontend Docker image to a new instance in your Digital Ocean account. You will be prompted to provide your Infura Project ID, Alchemy Key, and Blocknative Dapp ID as these are required for the frontend to work correctly.

Deploy to DO

Design System

The app is using Tailwind to configure base styles. In development these styles can be viewed by running:

npm run tailwind-viewer

Your browser should load the app at http://localhost:3000.

About

Frontend Vue app for Balancer exchange and pool management.

Resources

License

Code of conduct

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Vue 51.6%
  • TypeScript 46.1%
  • JavaScript 1.3%
  • CSS 0.7%
  • HTML 0.2%
  • Shell 0.1%