Projects Overview - TerminusCMS Tour
Create a new data product
Creating a data product by -
- Select ‘New Data Product’
- Give it an ID (only alphanumeric characters and underscores are allowed)
- Name it something meaningful
- Give it a description so that team members can see its purpose.
All projects/data products within a team are listed on the left.
Select the data product by clicking it.
Adding a Schema
Build a project's schemas using the user interface or develop it in code.
For a detailed overview of the schema language, which is based on JSON syntax refer to the schema reference guide.
Visual Interface
- Choose Data Product Model from the lefthand menu - the second icon
- In the window, you will see an oval called your data product name schema. Click on the oval and select the + symbol
- Add a document or enum
- JSON documents form the nodes of the graph
- Enumerated types are a set of possible choices
- Select add document
- On the right, you will see a set of options to define the document
- Give it a unique ID (no spaces)
- Define the document key, choose from this blog will help you decide what key to use
- Lexical (need to set up document properties first)
- Hash (need to set up document properties first)
- Random
- ValueHash
- Add the document properties, choose from:
- Enum - Need to create the enums before this option becomes available
- Numeric
- String
- Geo
- Temporal
- Boolean
- JSON
- Link - building the relationships in the graph
- On the next tab, you can see the relationships in the graph, this will show links between objects. You can also set the document as a parent/child of another document.
- The final tab when creating the document shows it in its JSON format.
- Save your document by clicking on the disk icon.
Creating subdocuments and enums can be achieved in much the same way.
Schema as Code
Using a visual editor to build a schema isn’t for everybody. Users can also design schema as code.
- Choose Data Product Model from the lefthand menu - the second icon.
- In the window, there are two tabs, ‘Graph View’ and ‘JSON View’.
- Select JSON View.
- Click on the edit icon.
- Add or copy and paste the JSON schema into the window and save.
The schema should now display in the graph view.
Version Control Features
TerminusCMS has collaboration and version control features. Some of these are available via the dashboard. From the left select the first icon to navigate to your project home page -
On this page, you can -
- See a snapshot of the latest activities.
- See the project details.
- Clone the project - name it and decide which team you want to clone it to.
- Delete the project.
- Branch the project - along with reset and squash.
- Time travel to any previous commit to inspect the project in the past.
Branch Projects
At the bottom of the project home page is the branch button.
Each project can have one or more branches, the default is called main. Each branch contains a snapshot of the data as it was at the time of branching. This is useful for experimenting or providing data to other teams when you want to keep them away from main.
Users can reset a branch to a specific commit or can delete the commit history by squashing it. They do this by selecting the ellipsis symbol next to the branch and then following the prompts.
Reset Project
TerminusCMS enables users to reset the project database to a particular commit. To do this, scroll to the bottom of the project home page and click branches.
Select the ellipsis symbol next to main. Here users can reset to a specific commit, or delete the commit history by squashing it.