democratic

一个使用 GraphQL 的 Golang API 骨架。「A Golang API skeleton with GraphQL」

Github星跟蹤圖

democratic

用 Echo 框架实现 GraphQL API 的 Golang 骨架。

这是一个基于 Echo 框架,和 GraphQL 的小型API项目。支持 GraphQL 查询和 GraphQL Mutations。欢迎贡献自己的力量。

特性

  • 按环境配置
  • 解析器
  • Schemas
  • Flag 解析器
  • 认证中间件(todo)
  • Prometheus 指标

要求

  • Govendor
  • Golang 1.9

安装方法

从源代码

你可以使用 从 GitHub 上 Clone,然后运行 make run。

要设置正确的环境,你应该使用 -e 标志(默认为 dev)

用例

curl -XGET http://localhost:8888/graphql\?query\=%7Buser(id%3A%22test%22)%7Busername%7D%7D

贡献

我们希望您对 democratic 的贡献,请查看 LICENSE 文件,了解更多信息。

Vinicius Souza – @iamvsouzahi@vsouza.com

根据 MIT 许可分发。更多信息请参见 LICENSE。

https://github.com/vsouza/democratic


主要指標

概覽
名稱與所有者vsouza/democratic
主編程語言Go
編程語言Go (語言數: 2)
平台Linux, Mac, Windows
許可證MIT License
所有者活动
創建於2017-05-05 14:07:04
推送於2020-09-02 07:00:12
最后一次提交2018-06-14 15:38:24
發布數0
用户参与
星數43
關注者數3
派生數5
提交數27
已啟用問題?
問題數6
打開的問題數4
拉請求數0
打開的拉請求數0
關閉的拉請求數0
项目设置
已啟用Wiki?
已存檔?
是復刻?
已鎖定?
是鏡像?
是私有?

democratic

Golang skeleton for GraphQL API with Echo framework

Go Version
Build Status
Codebeat
License
PRs Welcome

It's a small API project based on Echo framework, and GraphQL.
Supports GraphQL queries and GraphQL Mutations. Feel free to contribute!

Features

  • Configuration by enviroment
  • Resolvers
  • Schemas
  • Flag parser
  • Auth middleware
  • Metrics with Prometheus

Requirements

  • Govendor
  • Golang 1.9

Installation

From source

You can use Clone from Github and run make run

To set the correct environment you should use: -e flag (dev is default)

Usage example

curl -XGET http://localhost:8888/graphql\?query\=%7Buser(id%3A%22test%22)%7Busername%7D%7D

Contribute

We would love you for the contribution to democratic, check the LICENSE file for more info.

Meta

Vinicius Souza – @iamvsouzahi@vsouza.com

Distributed under the MIT license. See LICENSE for more information.

https://github.com/vsouza/democratic