Skip to content

GraphQL server using gqlgen, echo and jwt token auth

Notifications You must be signed in to change notification settings

ebkn/gqlgen-with-echo-sample

Repository files navigation

gqlgen with echo sample

sample project of gqlgen with echo

Installation

$ git clone https://github.com/ebkn/gqlgen-with-echo-sample.git

Usage

$ docker-compose up
$ docker exec -it gqlgen-with-echo-sammple_app sh
(inside docker container) # go run .
get token
$ curl http://localhost:3000/login -X POST -d username=username -d password=password
> xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
try GraphQL

open http://localhost:3000/playground

set header (at bottom menuHTTP HEADERS)

{
  "Authorization": "Bearer <input your token>"
}

write query

query {
  user {
    username
  }
}

About

GraphQL server using gqlgen, echo and jwt token auth

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published