Skip to content
/ skeleton Public template

Golang microservices template using dapr

License

Notifications You must be signed in to change notification settings

kzmake/skeleton

Repository files navigation

skeleton: Golang用テンプレートプロジェクト

テンプレートを利用してプロジェクトを始める

プロジェクトのパス変更

下記のコマンドを初回のみ実行してください。

./init.sh {{ user_name }}/{{ project_name }}

# ex:
#   ./init.sh hogehoge/fugafuga

マイクロサービスの追加

  1. api/{{ マイクロサービス名 }}/v1 にて.protoの追加
  2. backend/svc/{{ マイクロサービス名 }} にてgRPCアプリケーションの追加
  3. Makefile にて SERVICES 変数に backend/svc/{{ マイクロサービス名 }} を設定
  4. manifests/base/svc-{{ マイクロサービス名 }}.yaml としてマニフェストの追加
  5. skaffold.app.yaml にて追加したマイクロサービスのコンテナイメージのビルドを追加

Requirements

このプロジェクトでは、

などを使用します。初回のみ

make install

で必要なツールをインストールしてください。

for developer

ProtocolBuffersからコードを生成&フォーマットやLinterを実施する

make

ローカル(kind)環境を準備する

make kind

アプリケーションをビルド&デプロイする

make dev

ローカル環境(kind)を削除する

make clean

Production環境へのデプロイ

下記のコマンドを実施することでデプロイできます。

make deploy-production

もし、デプロイ済みのアプリケーションを削除する場合は

make destroy-production

About

Golang microservices template using dapr

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published