A backend middleware for Astro 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-stats.testnet.app.astrodao.com/docs/
Mainnet: api-stats.app.astrodao.com/docs/
- Clone the repo:
git clone git@github.com:near-daos/astro-stats-api.git
- Open the repo folder:
cd astro-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