Skip to main content

Adding Domain Owners

Domain ownership is a key concept of EventCatalog. If you work in a distributed system your domains may be managed and owned by different teams, but knowing these owners can be quite hard.

Let's add some owners to our new Orders domain.

First let's add some users to our project.

Open up the eventcatalog.config.js file and add the following.

/eventcatalog.config.js
module.exports = {
// ...
users: [
{
id: 'dboyne',
name: 'David Boyne',
avatarUrl: 'https://pbs.twimg.com/profile_images/1262283153563140096/DYRDqKg6_400x400.png',
role: 'Developer',
summary: 'Maintainer of EventCatalog and loves building tools for Event Architectures.'
},
],
};
Adding Users to your catalog

The eventcatalog.config.js is the place to store your users information. You can access these across events, services and domains.

Find out more reading the users documentation

Great, so we have added the user David Boyne with the id dboyne. Let's go back to our domain and add this user.

/domains/Orders/index.md
---
name: Orders
summary: |
Domain that holds all the order information
owners:
- dboyne
---

Duis mollis quam enim, feugiat porta mi porta non. In lacus nulla, gravida nec sagittis vel, sagittis id
tellus. Vestibulum maximus velit eget massa pulvinar ornare. In vel libero nulla. Aliquam a leo risus.
Donec bibendum velit non nulla sollicitudin lacinia. Vestibulum imperdiet nunc eget
neque sagittis, eget volutpat purus ornare. Mauris malesuada finibus pretium.
Vestibulum suscipit tortor sit amet dolor tempor cursus. Nunc ac felis accumsan.

<NodeGraph />

Now when you render your domain you will see your new owner for that domain. You can add as many owners as you like, as long as you add their details in the eventcatalog.config.js file.