Open5
CRUD バックエンド+フロントエンド With GCP
![Minato_seagull](https://res.cloudinary.com/zenn/image/fetch/s--vewlLCnO--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_70/https://storage.googleapis.com/zenn-user-upload/avatar/0de78d7443.jpeg)
バックエンド: Go
フロントエンド: React
インフラ: GCP (GKE)
ひとまず DB なしでバックエンドフロントエンドの疎通まで
フロントエンドのひな型参考
![Minato_seagull](https://res.cloudinary.com/zenn/image/fetch/s--vewlLCnO--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_70/https://storage.googleapis.com/zenn-user-upload/avatar/0de78d7443.jpeg)
インフラの用意
- Computing Engine
- Autopilot (一般公開クラスタ)
- Kube Engine API
ワークロードによって Contenair Registory (or Artifact Registory) からデプロイする
インフラはいったんここまででバックエンド、フロントエンドのイメージ作成
![Minato_seagull](https://res.cloudinary.com/zenn/image/fetch/s--vewlLCnO--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_70/https://storage.googleapis.com/zenn-user-upload/avatar/0de78d7443.jpeg)
TODO
- OpenAPI + Swagger (Code Gen) で API 仕様とバックエンドコード生成
- フロントエンド動作確認
- バックエンドの Dockerfile 作成
- フロントエンドの Dockerfile 作成
- ビルドして Container Registory へ Push
- バックエンド
![Minato_seagull](https://res.cloudinary.com/zenn/image/fetch/s--vewlLCnO--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_70/https://storage.googleapis.com/zenn-user-upload/avatar/0de78d7443.jpeg)
Swagger で自動生成する Go のコードは v1.10 ベースなのでバージョンを上げると go.mod が無くて build エラーになる -> go mod init する
あと go ディレクトリは名前で引っかかるので swagger に変更
![Minato_seagull](https://res.cloudinary.com/zenn/image/fetch/s--vewlLCnO--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_70/https://storage.googleapis.com/zenn-user-upload/avatar/0de78d7443.jpeg)
フロントエンド動作確認: production buld だと初期コンポーネントの指定がないため表示できない