back to home view all articles

*Ring, Ring* ..... "Oh, i've got some message"

It's Deadlinesday, - we reached it. :)

Today we did a lot around the project. That means http://votesapp.de, the README.md, the logo and so on. We even wrote a small storyline for our demo video which was the highlight of the day.

I like to share our great recording setup with you:

Image of our setup

"Who cares about the clothes? The camera will record the phone only." - Walery thought :P

When you are going to watch the video, be prepared for the first 10 seconds. It's so funny and well acted. Ring, Ring ..... "Oh, i've got some message" :)

Next to the video we did some must have but well hated documentation like the technical highlights and an overview of the whole system (including the things we don't submit to the contest). For the documentation we used the free version of http://www.lucidchart.com. There was absolutely nothing to say against this tool. And thats the outcome of it. To stop abusing the README we tried jekyllrb on Github Pages for a more attractive page. Also jekyll impressed us by its concept.

On Java we replaced our ConsoleClient by a more modern WebClient. Thanks to Spring Boot replacing the left- by right handed side was an ~2,5 hours job.

Image of our setup

The WebClient for local testing is using WebSockets with SockJS, Stomp and Bootstrap.

To enable it we used this two dependencies compile("org.springframework.boot:spring-boot-starter-websocket"), compile("org.springframework:spring-messaging") and added the AbstractWebSocketMessageBrokerConfigurer like this:

@Configuration
@EnableWebSocketMessageBroker
public class WebSocketConfig extends AbstractWebSocketMessageBrokerConfigurer {

  @Override
  public void registerStompEndpoints(StompEndpointRegistry registry) {
    registry.addEndpoint("/whatsapp").withSockJS();
  }
}

That's it from java. To enable the client side we need to put our index.html and stomp.js into /src/main/resources/static. And it just runs like charm.