Skip to content

usename-Poezd/mvc

Repository files navigation

⚙️ My MVC pattern with NO LIBS ⚙️

🚧 Project struct

root/
├── app
│   ├── Contracts
│   ├── Core
│   ├── Exceptions
│   └── Routing
├── assets
│   └── views
│       └── home
├── docker
│   └── nginx
│       └── conf.d
├── public
├── routes
└── src
   └── Controllers

app/

Project core. It loads the service settings, initializes the framework, and searches for the required controller.

assets/

Folder for any front-end stuff and views

docker/

Folder for configs of docker containers

public/

The entry point to the project.

routes/

Routes folder, which stores descriptions of all routes of service

src/

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.

About

MVC implementation with no libs

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published