A backend middleware for DAO Stats providing access to multiple DAO metrics.
- Blockchain: NEAR
- Smart Contracts: Sputnik DAO Factory V2, Sputnik DAO V2
- Package manager: Yarn
- Core programming language: TypeScript
- Application framework: React
- Code quality: Eslint, Prettier
- Containers: Docker
- Deployment: Kubernetes
Testnet: https://api.testnet.daostats.io
Mainnet: https://api.daostats.io
- Clone the repo:
git clone [email protected]:near-daos/dao-stats-api.git
- Open the repo folder:
cd dao-stats-api
- Install dependencies:
yarn install
-
Add
.env.local
to the root folder with required environment variables described in.env
. -
Run dev docker compose:
docker-compose -f docker-compose-dev.yml up
Please make sure that Docker has been installed on your local machine.
- Run specific service you need:
- Aggregator:
yarn start-aggregator:dev
- API:
yarn start-api:dev