democratic

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

Github stars Tracking Chart

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


Overview

Name With Ownervsouza/democratic
Primary LanguageGo
Program languageGo (Language Count: 2)
PlatformLinux, Mac, Windows
License:MIT License
Release Count0
Created At2017-05-05 14:07:04
Pushed At2020-09-02 07:00:12
Last Commit At2018-06-14 15:38:24
Stargazers Count42
Watchers Count4
Fork Count5
Commits Count27
Has Issues Enabled
Issues Count5
Issue Open Count3
Pull Requests Count0
Pull Requests Open Count0
Pull Requests Close Count0
Has Wiki Enabled
Is Archived
Is Fork
Is Locked
Is Mirror
Is Private

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

To the top