-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
29 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
# go-voyager-graphql | ||
|
||
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 | ||
``` |