Skip to content

Repository files navigation

Commons DAO aragon-logo

The web app for the Token Engineering Commons DAO.

image

How to run locally

  1. Git clone this repo.
git clone https://github.com/CommonsBuild/tec-dao.git
  1. Go to directory.
cd tec-dao/
  1. Install dependencies.
yarn
  1. Set the environment variables.
  2. Build the app.
yarn build
  1. Serve the app.
npx serve dist

NOTE: Take into account that the development server is using the hosted service of TheGraph, which is deprecated. On building the app the scripts/postinstall.sh script is used to replace the API key of TheGraph in the built files.

Environment variables

Create a .env file with environment variables. You can use the .env.example file as a reference.

Below you can find a list of all the required variables:

Env variableDescription
CHAIN_IDThe ID of the chain where the DAO is located on.
DAO_IDThe Aragon ID (ENS name) or address of the DAO.
GUARDIANS_TOKEN_MANAGERThe address of the Guardian Token Manager app.
THEGRAPH_API_KEYThe API key for TheGraph.

And here a list of optional variables:

Env variableDescription
ALCHEMY_API_KEYThe API key for Alchemy.com.
INFURA_API_KEYThe API key for Infura.io.
POCKET_API_KEYThe API key for Pokt.network.
ANKR_API_KEYThe API key for Ankr.com.
IPFS_RESOLVERAn URL similar to https://gateway.ipfs.io/ipfs/{cid}{path} with a custom IPFS gateway.
PORTALS_API_KEYThe API key for portals.fi (used for fetching the token prices and logos).
BUDGET_APP_ADDRESSESA list of comma-separated addresses of DAO apps that should be labeled as "Budget".
GOVERNANCE_APP_ADDRESSESA list of comma-separated addresses of DAO apps that should be labeled as "Governance".

The optional API keys env variables are useful for setting different providers for request balancing in production environments.

About

The web interface for the Commons DAO.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages