Description of System Architecture - nhash46/Tessagon-e-Portfolio GitHub Wiki

1. User Interface:

  • The user sends a HTTP request to the express application

2. Domain:

  • The express app hands the request to specific router
  • The router interprets the request and makes a call to the relevant controller function
  • The controller then executes the function, and potentially makes a call to the database through a mongoose model

3. Database

  • The database returns a model object to the controller which passes the object into a view template for rending

4. Domain/User Interface

  • This view template is then returned to the client and loaded into the browser