Warpin
GoLang dockerize microservices and GraphQL.
System Diagram
Folder Structure
app
├── service
│ ├── cmd
│ │ └── service
│ │ └── main.go
│ ├── pb
│ │ └── service.pb.go
│ ├── app.dockerfile
│ ├── db.dockerfile
│ ├── service.proto
│ ├── client.go
│ ├── service.go
│ └── server.go
├── graphql
│ ├── app.dockerfile
│ ├── graph.go
│ ├── main.go
│ ├── models.go
│ ├── query_resolver.go
│ ├── mutation_resolver.go
│ ├── schema.graphql
│ └── gqlgen.yml
├── docs
│ ├── postman
│ │ ├── postman_collection.json
│ │ └── postman_environtment.json
│ └── diagram.png
├── vendor
├── go.sum
└── go.mod
Postman
postman collection & environment
.
├── ...
├── docs # Documentation files
│ ├── postman # Postman
│ │ ├── Warpin.postman_collection # Postman Collection
│ │ └── Warpin.postman_environment # Postman Environment
│ └── ...
└── ...
Requirement
- installed docker & docker-compose
Build
$ docker-compose up -d --build
Open http://localhost:8000/playground in your browser.
How to
- Run the warpin app with docker-compose
- Import postman collection & environtment to your postman application
- Try to send request from imported collection
- You also can try from the graphQL playground in browser
http://localhost:8000/playground
- Copy the request from postman & try it from graphQL playground