server template in GO
go run cmd/goserv-api/main.go
go run cmd/goserv-db/main.go
docker run --rm -d --name rabbitmq -p 5672:5672 -p 15672:15672 -e RABBITMQ_DEFAULT_USER=admin -e RABBITMQ_DEFAULT_PASS=admin rabbitmq:3-management
using openapi-generator 5.0.0-beta3
java -jar ./api/openapi-generator-cli.jar generate -i ./api/swagger-server.yaml -g go-gin-server -o ./internal/goserv-api --package-name api
java -jar ./api/openapi-generator-cli.jar generate -i ./api/swagger-client.yaml -g go -o ./internal/clients/sample --package-name client
Use api/codgen-server.go
to create swagger-server.yaml
go run github.com/facebook/ent/cmd/ent init ${your-new-schema}
edit <your-new-schema>
. initially User
,Project
Schema is set :)
go generate ./ent