Skip to content

Latest commit

 

History

15 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

MVC-example

Simple example of MVC internal app architecture pattern. Project based and modyfied of https://github.com/utimur/mvc

Description of MVC

Here is simple diagram of components of MVC pattern in C4 notation. Each component is responsible for a different part of the processes. In MVC pattern you have 3 layers / components:

  1. Controller. Processes HTTP requests, extracts parameters from requests. Used to implement the loose coupling between interface and logic layers
  2. Model. Stores business logic and logic of working with entities, works directly with the database. Essentially the core of the application
  3. View. UI. Renders content based on data from the model. Users see and work directly with the view

mvc

Run app

  1. Install the necessary packages with npm install
  2. Install express and handlebars with npm i express hbs
  3. To run app just use npm start

About

Simple example of MVC architecture pattern. Project based and modified of https://github.com/utimur/mvc

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages