Skip to content

Commit

Permalink
feat: add event catalog and contracts (#4)
Browse files Browse the repository at this point in the history
* feat: add example architecture contracts

* feat: add event catalog

* fix: change link to correct github repo
  • Loading branch information
RyanT5 authored Aug 23, 2023
1 parent 6a3c9d3 commit b59f626
Show file tree
Hide file tree
Showing 9 changed files with 6,433 additions and 0 deletions.
43 changes: 43 additions & 0 deletions event-catalog/eventcatalog.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
module.exports = {
title: "EventCatalog",
tagline: "Discover, Explore and Document your Event Driven Architectures",
organizationName: "Your Company",
projectName: "Event Catalog",
editUrl:
"https://github.com/aleios-cloud/eventbridge-toolbox-schema-generator",
trailingSlash: true,
primaryCTA: {
label: "Explore Events",
href: "/events",
},
secondaryCTA: {
label: "Getting Started",
href: "https://www.eventcatalog.dev/",
},
logo: {
alt: "EventCatalog Logo",
// found in the public dir
src: "logo.svg",
},
footerLinks: [{ label: "Events", href: "/events" }],
users: [
{
id: "LukeY",
name: "Luke Yianni",
avatarUrl: "https://randomuser.me/api/portraits/lego/5.jpg",
role: "Architect",
},
{
id: "AprilB",
name: "April Bates",
avatarUrl: "https://randomuser.me/api/portraits/lego/9.jpg",
role: "Developer",
},
{
id: "RyanS",
name: "Ryan Schuller",
avatarUrl: "https://randomuser.me/api/portraits/lego/8.jpg",
role: "Developer",
},
],
};
20 changes: 20 additions & 0 deletions event-catalog/events/PersonRegisteredContract/versioned/1/index.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
---
name: PersonRegisteredContract
version: 1
summary: |
A summary
producers:
- Producer
consumers:
- Consumer
owners:
- Name
---

<Admonition>Some information</Admonition>

### Details

Some details...

<Schema />
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
{
"$schema": "http://json-schema.org/draft-07/schema#",
"type": "object",
"properties": {
"detail-type": {
"type": "string",
"const": "PersonRegisteredContract"
},
"detail": {
"type": "object",
"properties": {
"detail-version": {
"type": "number",
"const": 1
},
"data": {
"type": "object",
"properties": {
"firstName": {
"type": "string"
},
"lastName": {
"type": "string"
}
},
"required": [
"firstName",
"lastName"
],
"additionalProperties": false
}
},
"required": [
"detail-version",
"data"
],
"additionalProperties": false
}
},
"required": [
"detail",
"detail-type"
],
"additionalProperties": false,
"definitions": {}
}
20 changes: 20 additions & 0 deletions event-catalog/events/PersonRegisteredContract/versioned/2/index.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
---
name: PersonRegisteredContract
version: 2
summary: |
A summary
producers:
- Producer
consumers:
- Consumer
owners:
- Name
---

<Admonition>Some information</Admonition>

### Details

Some details...

<Schema />
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
{
"$schema": "http://json-schema.org/draft-07/schema#",
"type": "object",
"properties": {
"detail-type": {
"type": "string",
"const": "PersonRegisteredContract"
},
"detail": {
"type": "object",
"properties": {
"detail-version": {
"type": "number",
"const": 2
},
"data": {
"type": "object",
"properties": {
"firstName": {
"type": "string"
}
},
"required": [
"firstName"
],
"additionalProperties": false
}
},
"required": [
"detail-version",
"data"
],
"additionalProperties": false
}
},
"required": [
"detail",
"detail-type"
],
"additionalProperties": false,
"definitions": {}
}
24 changes: 24 additions & 0 deletions event-catalog/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
{
"name": "event-catalog",
"version": "0.0.1",
"private": true,
"scripts": {
"start": "eventcatalog start",
"dev": "eventcatalog dev",
"build": "eventcatalog build",
"generate": "eventcatalog generate"
},
"devDependencies": {
"@eventcatalog/types": "0.4.2",
"@types/node": "20.4.9",
"@types/react": "18.2.19",
"autoprefixer": "10.4.5",
"cross-env": "^7.0.3",
"postcss": "^8.3.11",
"tailwindcss": "^2.2.19",
"typescript": "^4.4.4"
},
"dependencies": {
"@eventcatalog/core": "0.6.12"
}
}
Loading

0 comments on commit b59f626

Please sign in to comment.