Skip to content

lukachi/eth-indexer

Repository files navigation

ETH indexer svc

Getting started

Install tools

  npm install -g @quobix/vacuum @typespec/compiler

Generate openapi.yaml

  cd docs/
  npm install

Add spec to components

import them at main

update version at package.json

Build openapi file:

  npm run build

Lint generated file:

npm run lint

Generate html file (redoc-static.html):

  npm run build-docs

Generate Resources

  cd ../
  sh ./generate-resources.sh

Check generated resources here

Work with DB

Install tools

  brew install golang-migrate
    brew install xo/xo/xo

Run migrations

    export $(grep -v '^#' .env | xargs) && migrate -path internal/assets/migrations -database "postgres://${DB_USER}:${DB_PASSWORD}@${DB_HOST}:${DB_PORT}/${DB_NAME}?sslmode=disable" up

Generate models

    sh ./generate-xo-models.sh

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published