Coder Social home page Coder Social logo

cryptobuks / thorchain-midgard Goto Github PK

View Code? Open in Web Editor NEW

This project forked from thorjealousy/midgard

0.0 0.0 0.0 5.94 MB

The Midgard Public API queries THORChain and any chains linked via the Bifröst and prepares information about the network to be readily available for public users. The API parses event data from THORChain. Midgard does not hold critical information.

Home Page: https://thorchain.org

Shell 0.32% Go 98.76% Makefile 0.54% Dockerfile 0.37%

thorchain-midgard's Introduction

pipeline status

Midgard API


Mirror

This repo mirrors from THORChain Gitlab to Github. To contribute, please contact the team and commit to the Gitlab repo:

https://gitlab.com/thorchain/midgard


=============

Run Midgard API

To run Midgard you will need two terminal windows or tabs. In the first tab, run...

make pg
# create an user (if you have not already done it before)
make create-user
# create a database (if you have not already done it before)
make create-database

In the second tab, run...

make install run

Run mock server

To use a mock server run everything as described in Run Midgard API. After that, run following command in another terminal:

make run-thormock

Run generated specs locally

First, run everything as described in Run chain service and Run mock server by using different terminals.

Open http://127.0.0.1:8080/v1/doc in your browser.

Testing

make test

For rapid testing, in one terminal tab...

make pg

In another tab, run...

make test-internal

If you'd like to run tests everytime there is a change to a go file...

make test-watch

Short Testing

You can run unit tests and omit the ones that require a running instance of timescale running on top of postgres

make test-short

Linting

make lint

thorchain-midgard's People

Contributors

ehsan-saradar avatar fandra1 avatar mcadam avatar rikonor avatar riyazlafir avatar ryardley avatar thorchain-admin avatar veado avatar

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.