Skip to content

The model

When we say model, we mean a logical model of a software system, or a component of that software system. In ProJor, you must first create a model of what you are doing, and then write code templates for this model. The model is created using .yaml files, with different file extensions contributing to different parts of your model.

In ProJor, your software model can be built from the following fundamental blocks:

  • Data Collections: These files describe your whole domain, and each data collection consist of data objects. It is the most frequently changing part of your model, and it is the source of truth for your application.
  • Schemas: These files describe the structure of your data collections. These define the fields of your data objects.
  • Globals: Data defined in these files can be used in any template, regardless of their scope. They are mostly used to inject things like version numbers or project names into your templates.

Data collections

Data objects

Schemas

Globals