3
2

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

【学習記録】個人開発の基本フロー【個人開発】

3
Posted at

今日のテーマ

SpringBootの基礎学習が終わったため、アウトプットとポートフォリオ作成を兼ねて個人開発を始めようと思います。
そこで、どのように進めていくべきかまとめてみました。
※ Webアプリ制作を想定

企画・設計フェーズ

1. 要件定義

  • 何を作るか決める(アプリの目的)
  • 誰が使うか(ターゲット)
  • どんな機能が必要かリストアップ
  • 必須機能とあればいい機能を分ける(MVP を決める)
  • 技術的な制約(使える技術、スキル)を確認

2. 画面設計

  • 必要な画面を洗い出す(一覧、詳細、登録、ログイン など)
  • 画面遷移を整理(どの画面からどこに飛ぶか)
  • 各画面に何を表示するかメモ(項目、ボタン、リンク)
  • ワイヤーフレームやメモで形にしておく(紙・Figma・Excel など)

3. データ設計

  • どんなデータを扱うか整理(ユーザー、投稿、商品 など)
  • テーブル構成を考える(カラム名、型、リレーション)
  • 画面とデータの対応を確認

開発フェーズ

4. プロジェクト作成

  • Spring Initializr でプロジェクト生成
  • 必要な依存関係を選択(Web, Security, Thymeleaf, Data JDBC, H2, MySQL Driver など)
  • 解凍してエディタで開く

5. リポジトリ管理

  • GitHub でリポジトリ作成(README などは追加しない)
  • git init
  • git add . → git commit -m "first commit"
  • git branch -M main
  • git remote add origin https://github.com/ユーザー名/リポジトリ名.git
  • git push -u origin main
  • 作業用ブランチ作成:git checkout -b develop

6. .gitignore の確認

  • build/, .gradle/, .cursor/ などが含まれているか確認
  • パスワードや秘密鍵が含まれていないか確認

開発中

7. 依存関係の追加

  • 必要な機能を Spring Boot 公式 などで確認
  • build.gradle の dependencies に追加
  • ./gradlew clean bootRun で再起動して動作確認

8. 設定ファイル

  • application.properties に DB 接続情報などを記述
  • 環境ごとに切り替える場合は application-環境名.properties を検討

9. コミットのタイミング

  • 機能がひと区切りついたらコミット
  • コミットメッセージは「何をしたか」がわかるように書く
  • git push origin develop でリモートに反映

機能完成時

10. main へのマージ

  • git checkout main
  • git merge develop
  • git push origin main
  • 必要なら develop に戻って続きの開発

よく使うコマンド

# アプリ起動
./gradlew bootRun

# クリーンビルドして起動
./gradlew clean bootRun

# MySQL 接続
mysql -u root
# または
mysql -u root -p

# MySQL 終了
exit

# ブランチ切り替え
git checkout develop
git checkout main

# 現在のブランチ確認
git branch

つまずいたときの確認リスト

  • 依存関係は足りているか?(build.gradle)
  • DB の接続情報は正しいか?(application.properties)
  • テーブルは作成済みか?(MySQL で SHOW TABLES;)
  • 非推奨の書き方になっていないか?(ラムダ式への書き換え)
  • 引数名は左右で一致しているか?(ラムダ式)
  • clean してから起動したか?(依存関係変更後)

次のステップ候補

  • 本番環境用の設定(プロファイル分離)
  • テストの書き方
  • CI/CD(GitHub Actions など)
  • デプロイ(Heroku, AWS, など)
3
2
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
3
2

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?