Midgard API
Mirror
This repo mirrors from THORChain Gitlab to Github. To contribute, please contact the team and commit to the Gitlab repo:
=============
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-databaseIn the second tab, run...
make install runTo use a mock server run everything as described in Run Midgard API. After that, run following command in another terminal:
make run-thormockFirst, 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.
make testFor rapid testing, in one terminal tab...
make pgIn another tab, run...
make test-internalIf you'd like to run tests everytime there is a change to a go file...
make test-watchYou can run unit tests and omit the ones that require a running instance of timescale running on top of postgres
make test-shortmake lint