vsouza / democratic

A Golang API skeleton with GraphQL

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

About

A Golang API skeleton with GraphQL

License:MIT License


Languages

Language:Go 98.8%Language:Makefile 1.2%