Clone the repository
$ git clone [email protected]:decentdao/decent-interface.git
Change to application's Node.js
version
$ nvm use
Install the dependencies
$ npm install
Running development environment (without Netlify
functions)
$ npm run dev
Running development environment (with Netlify
functions)
$ npm run dev:netlify
We're using Netlify
functions for retrieving various off-chain data.
Currently it's being used to fetch abstract address
's ERC-20, ERC-721 and DeFi balances through Moralis
.
It is crucial to have Netlify
functions running locally to work with anything related to DAO treasury, for instance
- Treasury page
- Payments feature
We're using Subgraph
to index certain "metadata" events to simplify data fetching from application site.
Repository, that implements mapping located here.
If you updated mapping and deployed new version - you might need to rebuild Subgraph
artifacts. Use command below.
Build Subgraph artifacts
$ npm run graphql:build
The "dev" and "prod" environments of this app are currently deployed via Netlify
.
The "dev" environment tracks the develop
branch, and the "prod" environment tracks the main
branch.