Skip to content

near-daos/astro-stats-api

Repository files navigation

Astro Stats API

Release version Build

A backend middleware for Astro Stats providing access to multiple DAO metrics.

Technology stack

Status

Change Log

Links

Development

Testnet: https://api-stats.testnet.app.astrodao.com/docs/

Production

Mainnet: api-stats.app.astrodao.com/docs/

Getting Started

Local Development

  1. Clone the repo:
git clone [email protected]:near-daos/astro-stats-api.git
  1. Open the repo folder:
cd astro-stats-api
  1. Install dependencies:
yarn install
  1. Add .env.local to the root folder with required environment variables described in .env.

  2. Run dev docker compose:

docker-compose -f docker-compose-dev.yml up

Please make sure that Docker has been installed on your local machine.

  1. Run specific service you need:
  • Aggregator: yarn start-aggregator:dev
  • API: yarn start-api:dev