root/
├── app
│ ├── Contracts
│ ├── Core
│ ├── Exceptions
│ └── Routing
├── assets
│ └── views
│ └── home
├── docker
│ └── nginx
│ └── conf.d
├── public
├── routes
└── src
└── Controllers
Project core. It loads the service settings, initializes the framework, and searches for the required controller.
Folder for any front-end stuff and views
Folder for configs of docker containers
The entry point to the project.
Routes folder, which stores descriptions of all routes of service
Framework extension point. This is where developers put their code. Implemented based on the MVC pattern. Controller - contains controllers. The entry point of all requests to the server and the subsequent formation of the response. Model - contains models. Gets data from various sources (DB, external api, etc.). Service - business logic layer. Contains code that is most likely to be refactored and modified. Generates json server response.