Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions .devcontainer/general/devcontainer.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{
"image": "mcr.microsoft.com/devcontainers/typescript-node",

"customizations": {
"vscode": {
"extensions": ["streetsidesoftware.code-spell-checker"]
}
},
"forwardPorts": [3000]
}
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,10 @@ This repository contains code and schemas for NHS Notify configuration managemen
- **Event Schemas:** Publishes configuration changes as events to an event bus for consumption by other system components.
- **Onboarding Automation:** Automates and streamlines the onboarding of new integrators, supporting self-serve and admin-driven workflows.

## Event Schema Catalogue

[Event Catalogue](eventcatalogue/README.md)

## Design

### Configuration Management
Expand Down
11 changes: 11 additions & 0 deletions eventcatalogue/Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
first-time-setup:
npx --yes @eventcatalog/create-eventcatalog@latest --organization-name "NHS Notify" nhsnotify

build:
cd nhsnotify && npm run build

dev:
cd nhsnotify && npm run dev

preview:
cd nhsnotify/dist && npx --yes http-server -p 3001
21 changes: 21 additions & 0 deletions eventcatalogue/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
# Event Catalogue

SERVER MODE

`make dev`
`http://localhost:3000/docs`

STATIC MODE

Open in "General" dev container

`make build`

`make preview`

`http://localhost:3001`

built output is static site to the [dist](./nhsnotify/dist) folder

For the remote schemas to work NO LONGER WORKS WITH STATIC. IT MUST RUN IN SERVER MODE.
Need to switch to using integrations to enable this ($$$).
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"collections": [],
"entries": {}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export default new Map();
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@

export default new Map([
["../domains/template-management/index.mdx", () => import("astro:content-layer-deferred-module?astro%3Acontent-layer-deferred-module=&fileName=..%2Fdomains%2Ftemplate-management%2Findex.mdx&astroContentModuleFlag=true")],
["../domains/core/index.mdx", () => import("astro:content-layer-deferred-module?astro%3Acontent-layer-deferred-module=&fileName=..%2Fdomains%2Fcore%2Findex.mdx&astroContentModuleFlag=true")],
["../domains/core/subdomains/core-template-rendering/index.mdx", () => import("astro:content-layer-deferred-module?astro%3Acontent-layer-deferred-module=&fileName=..%2Fdomains%2Fcore%2Fsubdomains%2Fcore-template-rendering%2Findex.mdx&astroContentModuleFlag=true")],
["../services/core-template-management/index.mdx", () => import("astro:content-layer-deferred-module?astro%3Acontent-layer-deferred-module=&fileName=..%2Fservices%2Fcore-template-management%2Findex.mdx&astroContentModuleFlag=true")],
["../services/template-management/index.mdx", () => import("astro:content-layer-deferred-module?astro%3Acontent-layer-deferred-module=&fileName=..%2Fservices%2Ftemplate-management%2Findex.mdx&astroContentModuleFlag=true")],
["../events/template-created/index.mdx", () => import("astro:content-layer-deferred-module?astro%3Acontent-layer-deferred-module=&fileName=..%2Fevents%2Ftemplate-created%2Findex.mdx&astroContentModuleFlag=true")],
["../events/template-deleted/index.mdx", () => import("astro:content-layer-deferred-module?astro%3Acontent-layer-deferred-module=&fileName=..%2Fevents%2Ftemplate-deleted%2Findex.mdx&astroContentModuleFlag=true")],
["../events/template-drafted/index.mdx", () => import("astro:content-layer-deferred-module?astro%3Acontent-layer-deferred-module=&fileName=..%2Fevents%2Ftemplate-drafted%2Findex.mdx&astroContentModuleFlag=true")]]);

Loading
Loading