BLOG

We design the basic architecture of the web application

22. 1. 2021

We decided for OOP (Object-oriented programming), ORM (Object–relational mapping), MVP (Model–view–controller).

Web application directory structure

The directory structure is designed with respect to the object-oriented application and the support of the MVC architecture.

  • app/elis (elis source code directory)
    • controller (controller classes, main logic)
    • component (component classes for presenters, stand-alone units)
    • presenter (controller classes, preparing the pages, inserting data to templates)
    • model (ORM, database model classes)
    • template (html templates)
    • utils (support classes)
  • code-lists (code lists for roles, event types, package states, countries…)
  • dict (dictionary files for localizing the application to other languages)
  • files (other files, reports…)
  • logs (system log files for monitoring)
  • www (directory with web access)
    • css (generated minified cascade style sheets)
    • img (images, favicons…)
    • js (java script files)
    • scss (sass source files)

URL structure

The web application supports COOL format URL addresses.

URL part meaning note
https:// protocol
elis.jid-project.eu domain address
/presenter main launch presenter
/parameter first parameter optional
/parameter second parameter optional
/parameter third parameter optional
?a=b&c=d GET data optional

Schemas

Application architecture
Core class diagram