Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/yuuu/gqlgen-echo-sample
Sample implementation of a Golang GraphQL server using gqlgen and Echo.
https://github.com/yuuu/gqlgen-echo-sample
Last synced: about 1 month ago
JSON representation
Sample implementation of a Golang GraphQL server using gqlgen and Echo.
- Host: GitHub
- URL: https://github.com/yuuu/gqlgen-echo-sample
- Owner: yuuu
- License: mit
- Created: 2020-04-12T21:59:05.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2020-04-13T04:46:15.000Z (over 4 years ago)
- Last Synced: 2024-06-20T19:29:36.929Z (6 months ago)
- Language: Go
- Size: 16.6 KB
- Stars: 16
- Watchers: 2
- Forks: 4
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
gqlgen-echo-sample
====Sample implementation of a Golang GraphQL server using gqlgen and Echo.
## Description
We combined gqlgen, a GraphQL library, and Echo, a web framework, to build a GraqhQL server implemented in the Go language.
[https://tech.fusic.co.jp/posts/2020-04-12-gqlgen-echo-sample/](https://tech.fusic.co.jp/posts/2020-04-12-gqlgen-echo-sample/)
## Screen Shot
![Mutation Sample](https://user-images.githubusercontent.com/8074640/79082385-816da380-7d60-11ea-8461-b42b72680879.png)
![Query Sample](https://user-images.githubusercontent.com/8074640/79082387-83cffd80-7d60-11ea-9a98-2ed204e5d2ee.png)
## Usage
```bash
$ go get github.com/yuuu/gqlgen-echo-sample
```1. Create the database `gqlgen-echo-sample` in PosgtreSQL beforehand.
2. Modify `db/dbconf.yml` appropriately.
3. Change the argument of `gorm.Open()` in `main.go` as needed.```bash
$ goose up
$ go run main.go
```Go to [http://localhost:3000/playground](http://localhost:3000/playground).