Bootstrap repo for echo, openAPI and Docker. To be used for example/reference.
The purpose of this repo is to provide a working example of the following:
- Updating
api/spec.yaml
and runningmake openapi
will generateapi/api.gen.go
- The code in
cmd/api/main.go
spins up a HTTP server, using the Swagger definition inapi/api.gen.go
and the Echo framework - The
Server
interface ininternal/server/v*/server.go
has to satisy the Interface inapi/api.gen.go
Dockerfile
builds the code into a Docker containerdocker-compose.yaml
shows how to use the Docker container
docker tag bootstrap-echo-openapi-docker:latest omisnomis/bootstrap-echo-openapi-docker:latest
docker push omisnomis/bootstrap-echo-openapi-docker:latest