Code Monkey home page Code Monkey logo

frontend-v2's Introduction

Balancer Frontend App (v2)

Frontend Vue app for Balancer exchange and pool management.

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
42 - Kovan
137 - Polygon
42161 - Arbitrum

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.

frontend-v2's People

Contributors

garethfuller avatar arb000r avatar evgenyboxer avatar markusbkoch avatar bonustrack avatar tomafrench avatar endymionjkb avatar timjrobinson avatar zekraken-bot avatar johngrantuk avatar pkattera avatar gtaschuk avatar mikemcdonald avatar rabmarut avatar dependabot[bot] avatar danielmkm avatar bakamoto20 avatar acryptosx avatar alexvansande avatar davis-ramsey avatar cianfru avatar dospore avatar cashd avatar amritkumarj avatar ulydev avatar apyvision avatar jnapier-code avatar justwanttoknowathing-github 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.