https://github.com/terra-money/hive-graph
GraphQL interface for Terra blockchain
https://github.com/terra-money/hive-graph
blockchain graphql graphql-api terra terra-money terramoney terrastation
Last synced: 3 months ago
JSON representation
GraphQL interface for Terra blockchain
- Host: GitHub
- URL: https://github.com/terra-money/hive-graph
- Owner: terra-money
- License: mit
- Created: 2021-08-09T10:47:22.000Z (about 4 years ago)
- Default Branch: main
- Last Pushed: 2023-08-29T15:19:37.000Z (about 2 years ago)
- Last Synced: 2025-05-15T07:15:34.904Z (5 months ago)
- Topics: blockchain, graphql, graphql-api, terra, terra-money, terramoney, terrastation
- Language: TypeScript
- Homepage:
- Size: 2.34 MB
- Stars: 16
- Watchers: 15
- Forks: 29
- Open Issues: 10
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README

GraphQL interface for Terra blockchain based on [terra.js](https://github.com/terra-money/terra.js)
## Features
- **Written in TypeScript**, with type definitions.
- Based on [terra.js](https://github.com/terra-money/terra.js) LCDClient spec.
- GraphQL **Schema** auto-generate with decorators and TypeScript classes.
- GraphQL **Types** compatible with columbus-4 and columbus-5.
- **LRU** cache for every GraphQL query.## Environment setup
- Install [Node.js](https://nodejs.org/)
- Recommended method is by using [NVM](https://github.com/creationix/nvm)
- Recommended Node.js version is v14.17
- Install [Docker](https://docs.docker.com/get-docker/)## Get Started
Install all the dependencies:
```
npm ci
```Copy the `.env.sample` file to `.env`
```
cp .env.sample .env
```In the project directory, you can run:
### `npm run start:dev`
Runs the NodeJs services in the development mode.\
Open [localhost:8085/graphql](http://localhost:8085/graphql) to view it in the browser or Postman.The service will reload if you make edits.
## Test
### `npm run test`
Running the unit tests.
### `npm run test:cov`
Running the test coverage.
## License
This software is licensed under the MIT license. See [LICENSE](./LICENSE) for full disclosure.
© 2021 Terraform Labs, PTE.
Powering the innovation of money.