bootstrap-echo-openapi-docker
Bootstrap repo for echo, openAPI and Docker. To be used for example/reference.
Purpose
The purpose of this repo is to provide a working example of the following:
- Updating
api/spec.yamland runningmake openapiwill generateapi/api.gen.go - The code in
cmd/api/main.gospins up a HTTP server, using the Swagger definition inapi/api.gen.goand the Echo framework - The
Serverinterface ininternal/server/v*/server.gohas to satisy the Interface inapi/api.gen.go Dockerfilebuilds the code into a Docker containerdocker-compose.yamlshows how to use the Docker container
Developmet
Publish to docker
docker tag bootstrap-echo-openapi-docker:latest omisnomis/bootstrap-echo-openapi-docker:latest
docker push omisnomis/bootstrap-echo-openapi-docker:latest