This example shows you how to pull and sync schemas from a GitHub schema registry (example used here: https://github.com/event-catalog/flowmart-schema-registry) into EventCatalog.
In this example we pull schemas and assign them to events, commands, and queries.
We have documentation for our events, commands, and queries, and the import persists the markdown between builds.
- 📃 Pull and sync your schemas from your GitHub repository to EventCatalog
- 📃 Keep your schemas in sync with your producers and consumers documentation
- 📃 Supports any schema format (e.g Avro, Protobuf, JSON)
- 📃 Import all schemas, or specific folders/files
- ⭐ Go beyond a schema. Add semantic meaning to your schemas, business logic and much more. Help your developers and teams understand the meaning behind the schemas with clear documentation and visualisations.
- 📊 Visualise producers and consumers in your architecture (demo)
- ⭐ Download synced schemas from EventCatalog (e.g Avro, Protobuf, JSON) (demo)
- 📃 Assign schemas to events, commands and queries
- ⭐ Discoverability feature (search, filter and more) (demo)
- ⭐ And much more...
To dive into how this plugin can help you, you can read the GitHub Plugin Docs
- EventCatalog GitHub Plugin License Key (14 day free trial at EventCatalog Cloud)
Once you have this repository cloned, and setup you can run the example.
- Run
npm install - Get a EventCatalog license key for GitHub integration from EventCatalog Cloud (14 day free trial)
- Set the
EVENTCATALOG_LICENSE_KEY_GITHUBenvironment variable in.envfile.
EVENTCATALOG_LICENSE_KEY_GITHUB=your-license-key- Generate the catalog (you can see the configuration in
eventcatalog.config.js)
npm run generate- Run the catalog locally
npm run devYou can then view your catalog at http://localhost:3000
The generator will persist the documentation between builds, so you can keep your documentation up to date.
Try and make a change to the event, command, or query documentation and rerun npm run generate to see the documentation persist.