Giter Club home page Giter Club logo

spring-integration-progress-bar's Introduction

spring-integration-progress-bar

A progress bar that can be controlled from a Spring Integration (Java DSL) Flow.
The progress is communicated via WebSocket.
Recovers from page-refreshes on currently running flows and also runs in parallel in multiple tabs

progress-bar.gif

Getting started

Using Github Codespaces

If you use Github Codespaces, you already have all the necessary dependencies from the .devcontainer/Dockerfile.

Installing the dependencies on your local machine

You can check the .devcontainer/Dockerfile and install the required dependencies manually. Many of them are only necessary for the Selenium Test to work.

To get up and running quickly

  • run npm run build to bundle the typescript code into bundle.js.
  • run the Spring Boot Application in your favorite IDE.
    • If you are using Codespaces, open it inside VS Code instead of in the browser to start the application.
  • open the browser at http://localhost:8080

Running the app with GitHub Codespaces inside the browser

At the time of writing, The Java plugin for Codespaces doesn't seem to work inside the browser. However, mvn test can run the Java application just fine for the Selenium test, and with the following instructions, you can get the app to run in the browser as well:

  1. run mvn package -DskipTests=true to bundle tha app into a JAR file.
  2. run the app with java -jar target/spring-integration-progress-bar-0.0.1-SNAPSHOT.jar
  3. in the Terminal, click on the line that says Open: http://localhost:8080 and you will be directed to a public URL in the browser that connects to the running app on GitHub.

To develop using live-reloading (Hot Module Reloading)

  • run the Spring Boot Application.
  • run the svelte app with npm run dev:codespaces or npm run dev.
  • open the browser at http://localhost:5173

To run the Selenium SpringBootTest

The Selenium test is run as part of mvn test (see below).

To run it manually:

  • run npm run build to bundle the typescript code into bundle.js.
  • stop the Spring Boot Application if it is currently running.
  • run the ProgressBarIT.

mvn test

Running mvn test will:

  • install node and npm
  • run npm install
  • run npm run build which uses vite to create bundle.js in the resources directory
  • run npm run test to run the typescript unit tests
  • run a Spring Boot Integration Test for the full application.

If you're running maven on your own machine, you can run mvn test -Dheadless=false if you want to open a browser for the Selenium test (e.g. for debugging).

Inspired by:

spring-integration-progress-bar's People

Contributors

swiss-chris avatar

Watchers

 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.