Search code examples
laravelmodel-view-controllerdeploymentumldeployment-diagram

Deployment Diagram for MVC pattern with Laravel and Inertia


I am trying to make a deployment diagram for my web application. I am using MVC architectural pattern but I am unsure if this should be included:

My Deployment diagram

I am using reactjs, Inertia js, laravel and MySQL. How can I show this on my diagram? I am not really sure how to represent Inertia JS


Solution

  • This diagram is a good start and all depends on the level of detail you want to share. You could indeed give a very high level picture of your architecture:

    enter image description here

    But this does not give good picture of the details that you provide:

    • Laravel means that the components are executed in an enclopsing PHP exectution environment, the PHP interpreter.
    • Eloquent ORM is not really the connection (this is why I preferred ORM connection insted of Eloquent ORM). Eloquent is a component that supports your model that extends eloquent classes. I also understand that it's part of Laravel
    • I understand that you're doing server side rendering, as you don't show any js on the browser. But I have to confess that I'm not very knowledgeable about Laravel & Inertia. In this case, you'd certainly have a node.js execution server on your webserver as well. If not, you'll understand the principles and be able to fine tune the diagram to your needs.
    • Regarding Inertia, I ualso nderstand that there is a js client side component to install for react, and a server side for laravel.

    enter image description here

    Now this is quite detailed already, and I've not even shown the dependencies between the components. Maybe it's more than what you want to provide. A simpler way could then to define some own stereotypes to show what's done with laravel:

    enter image description here