Giter Site home page Giter Site logo

chandanws / spring-boot-2-reactive Goto Github PK

View Code? Open in Web Editor NEW

This project forked from fineconstant/spring-boot-2-reactive

0.0 1.0 0.0 108 KB

Demo project for Spring 5 and Reactor with Angular and RxJs

Java 36.36% TypeScript 11.00% JavaScript 48.95% HTML 3.40% CSS 0.28%

spring-boot-2-reactive's Introduction

Reactive programming demo

Profiled with jprofiler Java profiler.

  • How to run?

    For the best experience import with IntelliJ.

    Execute in this order:

    1. Run isp.example.service.ReactiveServiceApplication - A Service application
    2. Run isp.example.client.ReactiveClientApplication - A Spring backend client application
    3. In order to start reactive front-end Angular application (requires node and npm):
      • Run cd reactive-front
      • Run npm install
      • Run npm start
    4. Observe logs of all the applications!
  • What is inside?

    • ReactiveServiceApplication contains localhost:8080 reactive endpoints:
      • /event - an infinite stream of events
      • /event{id} - get a specific event by id
      • /users - get a collection of all users
      • /users{id} - get a specific user by id
      • /users/count - get count of all users
      • /users/by_name/{name} - get a collection of users with a specified name
    • ReactiveClientApplication is a command line Spring application that uses Spring's new reactive web client to read events from the Service's /events endpoint.
    • Reactive Angular client under localhost:3000
      • As of today (Jun 7, 2017), RsJs has some problems with SSE (Server Side Events). See: ReactiveX/rxjs#1644
      • TypeScript has no EventSource definition. See: microsoft/TypeScript#13666
      • Temporary workaround: using pure JavaScript EventSource implementation.
  • Used in this project:

  • More examples of operators in src/test/java

  • Also worth checking:

  • To do:

    • Consuming events with TypeScript and RxJs
    • Format output date

spring-boot-2-reactive's People

Contributors

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