https://github.com/nutter20912/middleware
graphql
https://github.com/nutter20912/middleware
Last synced: 3 months ago
JSON representation
graphql
- Host: GitHub
- URL: https://github.com/nutter20912/middleware
- Owner: nutter20912
- Created: 2023-10-24T11:32:37.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2023-12-09T03:08:50.000Z (over 1 year ago)
- Last Synced: 2025-01-17T12:35:15.654Z (5 months ago)
- Language: Go
- Size: 142 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Middleware for micro service
## Packages
#### GraphQL
- [99designs/gqlgen](github.com/99designs/gqlgen)
- [graph-gophers/dataloader](github.com/graph-gophers/dataloader)
#### service
- [gin-gonic/gin](https://github.com/gin-gonic/gin)
- [go-micro/go-micro](https://github.com/go-micro/go-micro)
- [go-micro/plugins](https://github.com/go-micro/plugins)
- [gorilla/websocket](github.com/gorilla/websocket)
#### debug tool
- [go-delve/delve](https://github.com/go-delve/delve)---
## Setup
### Config- generate local env file
```=bash
cp .env.example .env
```- configuration
```
./config
├── app.yaml
```- override yaml config
```
#app.port
APP_PORT=1234
```
---
### Develop
1. Define schema
```
./graph/schema
├── resource.graphqls
└── schema.graphqls
```
2. Configuration `./gqlgen.yml`
3. Run `make`
4. Implement the resolvers `./graph/resolver/`
> more to see doc [here](https://gqlgen.com/)---
## Scripts
read Makefile