codeporn / spring-vertx-skeleton

A Spring skeleton application for using vert.x and websockets.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

spring-vertx-skeleton

A Spring skeleton using vert.x and websockets. The application fetches dummy information from https://jsonplaceholder.typicode.com, which is then deliverd asynchronously to the JavaScript websocket client. The client may also publish commands to the eventbus, which notifies the application to switch the type of information processed.

Build Status Coverity Status

Usage

If you'd like to run the application with a different hostname/ip/port, you'll need to change the eventbus configuration. Please see the section below for details.

Configuration

The configuration is located in ./src/main/resources/skeleton.properties.

  • eventbus.server.* and eventbus.client.*

    These properties configure the websocket/eventbus addresses. By default, the websocket opens and the web client connects to http://localhost:8088/eventbus/. You are able to change this according to your environment.

  • vertx.fileCache.base

    Configures the Vert.x cache directory. Defaults to java.io.tmpdir if not set.

About

A Spring skeleton application for using vert.x and websockets.

License:Apache License 2.0


Languages

Language:Java 99.3%Language:CSS 0.7%