Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

oapi-codegenの導入 #896

Merged
merged 21 commits into from
Dec 25, 2024
Merged
Show file tree
Hide file tree
Changes from 15 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 12 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ build:

# アプリコンテナの起動
run:
docker compose up
docker compose up -d

# アプリコンテナの停止
down:
Expand Down Expand Up @@ -72,3 +72,14 @@ ent-db:
# eslintの実行
run-eslint:
docker compose exec view npm run lint

generate-openapi:
docker compose run --rm api oapi-codegen -config /openapi/generated/config.yaml /openapi/generated/openapi.yaml

run-swagger:
docker compose -f compose.swagger.yml up -d

run-all:
make run-db
make run
make run-swagger
2 changes: 2 additions & 0 deletions api/dev.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,8 @@ ENV GOOS=linux
# swaggerをinstall
RUN go install github.com/swaggo/swag/cmd/swag@latest

RUN go install github.com/deepmap/oapi-codegen/v2/cmd/[email protected]

# Airをインストール
RUN go install github.com/air-verse/air@latest
CMD ["air", "-c", ".air.toml"]
Loading
Loading