Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/vsouza/democratic

A Golang API skeleton with GraphQL
https://github.com/vsouza/democratic

api echo golang graphql middleware

Last synced: about 6 hours ago
JSON representation

A Golang API skeleton with GraphQL

Awesome Lists containing this project

README

        

# democratic
> Golang skeleton for GraphQL API with Echo framework

[![Go Version][go-version-image]][go-version-url]
[![Build Status][travis-image]][travis-url]
[![Codebeat][codebeat-image]][codebeat-url]
[![License][license-image]][license-url]
[![PRs Welcome](https://img.shields.io/badge/PRs-welcome-brightgreen.svg?style=flat-square)](http://makeapullrequest.com)

It's a small API project based on [Echo framework](https://echo.labstack.com), and GraphQL.
Supports GraphQL queries and GraphQL Mutations. Feel free to contribute!

![](header.png)

## 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](http://github.com/vsouza/democratic) 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](https://twitter.com/iamvsouza) – [email protected]

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

[https://github.com/vsouza/democratic](https://github.com/vsouza/democratic)

[go-version-image]:https://img.shields.io/badge/Go%20version-1.7-blue.svg
[go-version-url]: https://golang.org/
[license-image]: https://img.shields.io/badge/License-MIT-blue.svg
[license-url]: LICENSE
[travis-image]: https://img.shields.io/travis/vsouza/democratic/master.svg?style=flat-square
[travis-url]: https://travis-ci.org/vsouza/democratic
[codebeat-image]: https://codebeat.co/badges/68b4c895-96c6-4547-a34f-2f7f9283415c
[codebeat-url]: https://codebeat.co/projects/github-com-vsouza-democratic-master