docker compose up --build
でビルド&実行できるhttp://localhost/
以下がfrontendhttp://localhost/api/
以下がbackend
/client
に移動してnpm run start
を実行http://localhost:3000/
を開く
- airが入っていなければ
go install github.com/cosmtrek/air@latest
を実行 /server
に移動してair
を実行http://localhost:8080/
を開く
/server/main.go
内でdb.Migrate()
を1回実行すればマイグレーション&初期化が完了
github.com/claustra01/hackz_megamouse/client/utils/jslog
をimportするjs.ConsoleLog("log message...")
でブラウザのdevtoolにログを出力できる
log.Fatal("[ERROR] ", err)
アプリを止めるべき致命的なエラー (例: .envファイルが見つからない)log.Print("[ERROR] ", err)
アプリを止める必要のないレベルのエラー (例: レスポンスが返ってこない)log.Print("[INFO] log message...")
エラーではない通常のログ
:sparkles: commit message...
のような形で最初に絵文字を付ける- 絵文字の種類については
gitmoji.md
を参照