/stacks-on-chain-api

A Nestjs app that provides analytics of the stacks blockchain indexed in a postgres DB.

Primary LanguageTypeScript

Nest Logo

Description

Work-in-progress to opensource stacks on chain. A Nestjs app that reads from a stacks blockchain indexed in a postgres database.

Installation

$ yarn
$ yarn prisma migrate resolve --applied "20220914034633_initial_migration"
$ yarn prisma generate && yarn prisma migrate deploy

Running the app

# development
$ yarn start

# watch mode
$ yarn start:dev

# production mode
$ yarn start:prod

Documentation

After running the app, visit http://localhost:8080/v1/api-docs.