https://github.com/kiran94/graphql-voyager-go
Serve the GraphQL Voyager UI from a Go HTTP Server
https://github.com/kiran94/graphql-voyager-go
golang graph graphql ui voyager
Last synced: about 1 month ago
JSON representation
Serve the GraphQL Voyager UI from a Go HTTP Server
- Host: GitHub
- URL: https://github.com/kiran94/graphql-voyager-go
- Owner: kiran94
- License: mit
- Created: 2022-05-28T07:54:00.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2022-05-28T18:59:48.000Z (over 3 years ago)
- Last Synced: 2025-02-05T09:51:58.840Z (8 months ago)
- Topics: golang, graph, graphql, ui, voyager
- Language: Go
- Homepage:
- Size: 73.2 KB
- Stars: 0
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# go-voyager-graphql
[](https://github.com/kiran94/graphql-voyager-go/actions/workflows/main.yml) [](https://pkg.go.dev/github.com/kiran94/graphql-voyager-go)
go-voyager-graphql is a small package that allows you to serve the [graphql-voyager](https://github.com/IvanGoncharov/graphql-voyager) graph from a HTTP Server.

## Usage
```go
// Create a new Handler, pass in your GraphQL Endpoint
vh := voyager.NewVoyagerHandler("/graphql")// Register the Handler
http.Handle("/voyager", vh)
```Complete Sample can be found in [cmd/server/main.go](./cmd/server/main.go)
## Local Setup
Assuming you are at the root of the repo.
```bash
make install_tools
make build
make test# Run the Server
# Navigate to http://localhost:8080/voyager
make run_server
```