democratic icon indicating copy to clipboard operation
democratic copied to clipboard

A Golang API skeleton with GraphQL

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

  • [x] Configuration by enviroment
  • [x] Resolvers
  • [x] Schemas
  • [x] Flag parser
  • [ ] Auth middleware
  • [x] 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 – @iamvsouza[email protected]

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

https://github.com/vsouza/democratic