Home

Awesome

CI

Knot.x Examples

Examples show how you can customize/extend Knot.x Stack in a real project. They use Gradle to build all custom modules and prepare a distribution containing custom configurations and modules.

Topics covered in our examples:

Distribution

Within this module, you will see what Stack is and how it can be customized. It also contains details on how to use Starter Kit template project to prepare a custom project distribution.

Although we recommend to start with Starter Kit that builds Docker image, using Docker is not mandatory.

TopicDescriptionUsed technologiesTutorialSource code
StackBasic usage of fragmentsHandler with a simple graph that uses data from external API and combines them with a static HTML provided by fsRepoConnectionHandler.StackGetting Started with Knot.x Stack./distribution/getting-started
DockerThis module covers the same topics as above. However, it uses Docker and embeds Knot.x Stack within a Docker image.Stack, Docker, Starter Kit template projectGetting Started with Docker./distribution/getting-started

API Gateway & Web API

Knot.x is an integration framework that can be used as a simple API gateway. It can be also combined with Cloud solutions like Apigee Edge or Amazon API Gateway.

TopicDescriptionUsed technologiesTutorialSource code
OpenAPI and API Console with SwaggerMore advanced example of OpenAPI specification usageOpenAPI, SwaggerUIOpenAPI specification & interactive API Console./api-gateway/api-console
Securing your APISimple usage of popular authentication technologies to secure your API.Docker, OAuth 2.0, OpenId Connect, JWTcoming sooncoming soon
CachingKnot.x proxies requests to target API, providing a caching capability.In-memory cache, Fragments, WireMock, DockerCaching API responses.api-gateway/caching
API compositionPresents how to compose data from many services / APIs using Configurable Integrations.Fragments, WireMock, DockerCompose multiple services into a single round-trip../api-gateway/api-composition
GraphQL APIExpose GraphQL API using Configurable Integrations.GraphQL, OpenAPI, Configurable IntegrationsUsing GraphQL with Knot.x./api-gateway/graphql-api

Template Processing

This module presents the aspects of template processing.

TopicDescriptionUsed technologiesTutorialSource code
Getting startedBasic usage of fragmentsHandler with a simple graph that uses data from external API and combines them with a static HTML provided by fsRepoConnectionHandlerTemplate Engine, Handlebars, Docker./template-processing/handlebars

Debugging with Fragments Chrome Extension

This module presents the usage of [Fragments Chrome Plugin](https://github.com/Knotx/knotx-fragments-chrome-extension.

TopicDescriptionUsed technologiesTutorialSource code
Template processing scenarioBasic usage of Knot.x Fragments Chrome Plugin during Task & Actions definition & external API responses investigation.Knot.x Fragments Chrome Plugin, Fragments Handler, Template Engine, Docker./chrome-extension