democratic
Golang skeleton for GraphQL API with Echo framework
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
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.
Vinicius Souza – @iamvsouza – hi@vsouza.com
Distributed under the MIT license. See LICENSE
for more information.
https://github.com/vsouza/democratic