Skip to content

GoでAPI Serverを書くときのもろもろを検証するレポ

License

Notifications You must be signed in to change notification settings

kyu08/go-api-server-playground

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

59 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

go-api-server-playground

kyu08がGoでAPI Serverを書くときのアーキテクチャやライブラリの検証をするためのリポジトリです。

実装内容や使用技術など

題材 Twitter風のAPIサーバー
言語 Go 1.25.4
通信方式 gRPC
DB Cloud Spanner (Emulator)(ローカル実行のみできれば問題ないのでDBは常にSpanenr Emulatorに接続する設定になっています。)
CI GitHub Actions
依存関係更新 dependabot
Goコードのlint golangci-lint
アーキテクチャ レイヤードアーキテクチャ + CQRS

詳細はdocs/ARCHITECTURE.mdを参照。

各種手順

エンドポイント更新時の手順

  1. proto/twitter.protoを更新
  2. make gen-proto

ローカルでの開発手順

  1. make dev-toolsで必要なツールをインストール
  2. 必要に応じてmake test, make lintなどを実行

About

GoでAPI Serverを書くときのもろもろを検証するレポ

Resources

License

Stars

Watchers

Forks

Contributors 5