GithubHelp home page GithubHelp logo

troyhart / axon-subscription-queries-sse Goto Github PK

View Code? Open in Web Editor NEW
8.0 2.0 4.0 149 KB

A sample demonstrating how to implement axon subscription queries as server sent events to a javascript application.

Java 4.89% Kotlin 0.44% JavaScript 93.22% HTML 1.12% CSS 0.10% Dockerfile 0.19% Shell 0.05%

axon-subscription-queries-sse's Introduction

axon-subscription-queries-sse

A sample demonstrating how to implement axon subscription queries as server sent events (SSE) to a javascript application.

This sample uses this EventSource polyfill in order to support IE and custom headers in subscription request.

Usage

  • clone repository
  • build the docker container
  • launch the containers
  • open application

clone the repository

git clone [email protected]:troyhart/axon-subscription-queries-sse.git

build the docker container

From the project root directory:

$ ./build.sh

launch the containers

From the project root directory:

$ docker-compose up

open application

Point your browser to: http://localhost:8686

The application is a dumb little basket creater. You can create a basket of a given type and then add things to it. Each time you add a thing (the combination of name and description must be unique for each thing added) the model is updated and the new model is pushed from the server and the JSON data of the message is rendered on the page.

You can also subscribe to a known basket identifier, which is useful to demonstrate that multiple browsers are updated the the model changes....

axon-subscription-queries-sse's People

Contributors

troyhart avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  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.