https://github.com/vsouza/democratic
A Golang API skeleton with GraphQL
https://github.com/vsouza/democratic
api echo golang graphql middleware
Last synced: 10 months ago
JSON representation
A Golang API skeleton with GraphQL
- Host: GitHub
- URL: https://github.com/vsouza/democratic
- Owner: vsouza
- License: mit
- Created: 2017-05-05T14:07:04.000Z (almost 9 years ago)
- Default Branch: master
- Last Pushed: 2020-09-02T07:00:12.000Z (over 5 years ago)
- Last Synced: 2025-04-24T05:43:10.275Z (10 months ago)
- Topics: api, echo, golang, graphql, middleware
- Language: Go
- Homepage:
- Size: 10.4 MB
- Stars: 43
- Watchers: 3
- Forks: 5
- Open Issues: 4
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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]
[](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!

## 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) – hi@vsouza.com
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