5
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 1 year has passed since last update.

MVC(Model View Controller)とは?

Posted at

はじめに

Ruby on Rails 等で使用される MVCについて書きたいと思います。

MVCとは?

  • Model View Controller の略称
  • プログラムの処理を役割毎に分けて開発を行う考え方
    • Webシステムの開発で主に使用される
  • 以下のフレームワークで使用されている
    • Ruby on Rails, Laravel, SpringBoot 等

MVCの構成

  • Model
    • ビジネスロジックを書く部分
      • データベースとのデータのやり取りを行う部分
  • View
    • ユーザーが実際に見る画面
  • Controller
    • リクエストやレスポンスを制御
    • ViewとModelの橋渡し

MVC.drawio.png

参考

5
1
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
5
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?