Skip to content

NKotani/AE2Team2

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

93 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

AE2Team2

スクリーンショット 2023-09-08 10 33 37 スクリーンショット 2023-10-07 14 32 07 スクリーンショット 2023-10-07 14 32 24

システム構成

スクリーンショット 2023-10-07 14 31 48

運用ルール

  • GithubのProjects機能を使って全体を管理
  • IsuueのDevelopmentにブランチを紐づける(画像右下)
スクリーンショット 2023-09-05 10 23 32
  • コメントになるべくスクショ貼る
  • ブランチ名: Issueの内容のキーワード+Issue番号を入れる ex) docker_env#1
  • プルリク出して1人以上にみてもらう
    • 開発後半(水曜午後から)は無視してもOK
    • プルリク出したらZoomかDiscordで連絡
    • なるべく同じ担当の人がみた方がわかりやすいかも

使い方

docker-composeのコマンドを使うときはDocker Desktopを立ち上げてから行う

git clone https://github.com/shinjiezumi/vue-go-samples.git
cd vue-go-samples
docker-compose up -d

以下2つは最初に立ち上げるときだけだと思われます。

docker-compose exec api bash
sql-migrate up # 失敗したらDockerを立ち上げ直すとうまくいくかも
cp .env.example .env # Secretなどを設定
exit
docker-compose exec front npm install

サーバー起動

bash scripts/start-api.sh
bash scripts/start-front.sh

http://localhost:8080 開く

終了

docker-compose down

コンテナを0から構築し直したいときは以下のコマンド

docker-compose down --rmi all

DBのコンテナでエラーが出た場合

ae2team2-db-1     | 2023-09-06T05:38:41.384273Z 0 [ERROR] [FATAL] InnoDB: Table flags are 0 in the data dictionary but the flags in file ./ibdata1 are 0x4000!
  1. docker/mysql/dataのフォルダを全て消す
  2. docker-compose upし直す

参考

https://github.com/shinjiezumi/vue-go-samples

About

2023夏のチーム開発:フードロスの削減を目指すレシピサイト

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published