Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/vsouza/democratic
- Owner: vsouza
- License: mit
- Created: 2017-05-05T14:07:04.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2020-09-02T07:00:12.000Z (about 4 years ago)
- Last Synced: 2024-04-13T21:19:47.370Z (7 months ago)
- Topics: api, echo, golang, graphql, middleware
- Language: Go
- Homepage:
- Size: 10.4 MB
- Stars: 41
- Watchers: 4
- Forks: 5
- Open Issues: 3
-
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]
[![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