Giter Site home page Giter Site logo

baking-bad / tzkt-pro Goto Github PK

View Code? Open in Web Editor NEW
4.0 3.0 1.0 1.83 MB

๐Ÿ”Ž Table interface for the TzKT blockchain indexer

License: GNU General Public License v3.0

Makefile 18.16% Smarty 1.44% JavaScript 59.17% Handlebars 6.03% Shell 10.96% jq 4.24%
tezos postgrest tezos-api blockchain-api tzkt-api graphql hasura

tzkt-pro's Introduction

TzKT Pro

Setup

Create .env file from .env.tpl

Install dependencies

make install

Download latest TzKT snapshot

make snapshot

Run database and apply snapshot

make db-start  # wait for container is up and running
make db-restore

Create Postgres roles, schemas & views

make db-pro

Run the indexer and postgrest gateway

make pro-start

Generate Docs Specs (Open API Specification)

make spec

View Docs (with Redoc)

make docs

Upgrade

Just hit the make upgrade command to pull the latest images from Docker Hub and restart services. Specs and Docs will be also generated.

make upgrade

Code Samples

make spec will generate a GET code sample for each endpoint using the open-api/code-samples/config/gen-code-samples.config.json config.

To add a template for a new language:

  1. Create a Handlebars template file in open-api/code-samples/templates eg.

    open-api/code-samples/templates/javascript.hbs
    
  2. Update open-api/code-samples/config/gen-code-samples.config.json config eg.

    "JavaScript": "open-api/code-samples/templates/javascript.hbs",
  3. Now make spec will generate a GET code sample for each endpoint using the updated config and Handlebars template

Tag Groups

make spec will update x-tagGroups in the Open API spec it generates using open-api/data/open-api-tag-groups.json

Testing

To run tests

npm run test

or in watch mode

npm run test:watch

Node Version

The Node version for this project is automatically managed by AVN and NVM, read more here.

tzkt-pro's People

Contributors

dmirgaleev avatar m-kus avatar neilrussell6 avatar ungarson avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

Forkers

isabella232

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.