Coder Social home page Coder Social logo

ksqldb-recipes's Introduction

ksqlDB Recipes

This repository contains the source for the collection of ksqlDB Recipes at https://confluentinc.github.io/ksqldb-recipes/

How to contribute

We welcome all contributions, thank you!

Contributing an idea? Submit a GitHub issue.

Contributing a full recipe and want to publish it? Submit a GitHub Pull Request. The content of that PR should follow the template established by existing recipes (browse through any recipe in https://github.com/confluentinc/ksqldb-recipes/tree/master/docs for more details):

  1. Select the docs/<industry> folder for the appropriate industry, or create a new one
  2. Create a new subfolder for the new recipe, e.g. docs/<industry>/<new-recipe-name>
  3. Copy the contents of the template directory as the basis for your new recipe
  • index.md: explain the use case, why it matters, add a graphic if available
  • source.sql: SQL commands to create source connectors to pull from a real end system -- for ksqlDB-connect integration
  • source.json: JSON configuration to create source connectors to pull from a real end system
  • manual.sql: SQL commands to insert mock data into Kafka topics (if real end system does not exist)
  • process.sql: this is the core of the recipe, the SQL commands that correspond to the event stream processing
  • sink.sql: (optional) SQL commands to create sink connectors to push results to a real end system -- for ksqlDB-connect integration
  • sink.json: (optional) JSON configuration to create sink connectors to push results to a real end system

Build locally

To view your new recipes locally, you can build a local version of the recipes site with mkdocs.

  • Install mkdocs (https://www.mkdocs.org/)

    On macOS, you can use Homebrew:

    brew install mkdocs
    pip3 install mkdocs pymdown-extensions
    pip3 install mkdocs-material
    pip3 install mkdocs-exclude
  • Build and serve a local version of the site. In this step, mkdocs will give you information if you have any errors in your new recipe file.

    python3 -m mkdocs serve  
    

    (If this doesn't work try mkdocs serve on its own)

  • Point a web browser to the local site at http://localhost:8000 and navigate to your new recipe.

Publishing

If you are a Confluent employee, you can publish using the mkdocs GitHub integration. From the master branch (in the desired state):

ksqldb-recipes's People

Contributors

ybyzek avatar vsyu avatar rspurgeon avatar krisajenkins avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.