Skip to content

dropps-io/indexing-api

Repository files navigation

DROPPS indexing API

Twitter URL Discord

This repository contains the indexing API developed by DROPPS for the LUKSO network.

Mainnet API: https://indexing.mainnet.dropps.io/graphql
Testnet API: https://indexing.testnet.dropps.io/graphql

Databases

The project needs 2 PG databases to work and 1 for testing:

  • indexing-lukso-data, used to store all the data extracted from the LUKSO network.
  • indexing-lukso-structure, used to store all the data related to the structure of the LUKSO network. This allows the app to know how to read data from the network.

You can then update the connection strings accordingly.

Lukso structure database

lukso-indexing-structure.png

Lukso data database

lukso-indexing-data.png

Development

Run tests

  • yarn install
  • Create two postgres databases dedicated to the tests (should be different as the dev ones) and obtain connection strings
  • cp .env.example .env.test and fill the file
  • Run the tests: yarn test

Start the project

  • yarn install
  • Create two postgres databases and obtain connection strings
  • cp .env.example .env and fill the file
  • Initialize the databases: yarn seed:all
  • Run the indexing: yarn start