go + gin + GORM + postgresのDockerAPI環境
Airでライブリロード開発ができる
-
Go環境構築を読む
-
.env.sampleを参考に.env作る
-
下記コマンド
cd server
go get
cd ..
docker-compose up8080ポートをローカルに転送 http://localhost:8080/usersにGETリクエスト
cd server
go fmt ./...
# ==================== Emojis ====================
# 🎉 :tada: 初めてのコミット(Initial Commit)
# 🔖 :bookmark: バージョンタグ(Version Tag)
# ✨ :sparkles: 新機能(New Feature)
# 🐛 :bug: バグ修正(Bagfix)
# ♻️ :recycle: リファクタリング(Refactoring)
# 📚 :books: ドキュメント(Documentation)
# 🎨 :art: デザインUI/UX(Accessibility)
# 🐎 :horse: パフォーマンス(Performance)
# 🔧 :wrench: ツール(Tooling)
# 🚨 :rotating_light: テスト(Tests)
# 💩 :hankey: 非推奨追加(Deprecation)
# 🗑️ :wastebasket: 削除(Removal)
# 🚧 :construction: WIP(Work In Progress)