Skip to content

Commit aea144f

Browse files
committed
Added Diary for 17.01.
1 parent 21c7181 commit aea144f

File tree

4 files changed

+55
-0
lines changed

4 files changed

+55
-0
lines changed

README.md

Lines changed: 55 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -196,3 +196,58 @@ We haven't expand them very much, but there are some metrics about how many mess
196196
To do this we used Springs `CounterService` from the [GroupMessageListener](https://github.com/s2team/votesapp/blob/master/src%2Fmain%2Fjava%2Fde%2Fvotesapp%2Fgroups%2FGroupMessageListener.java)
197197

198198
As configured by default, they can be checked at `http://localhost:8080/metrics`.
199+
200+
# Thanks
201+
That was a really great week! Independent of the result we like to give special thanks to:
202+
203+
* Greg for organizing this contest
204+
* Tarek for keeping Yowsup run
205+
206+
We'll invite you both for beer, Greg when comming to US and Tarek when we are the next time in Berlin.
207+
208+
# *Ring, Ring* ..... "Oh, i've got some message"
209+
It's Deadlinesday, - we reached it. :)
210+
211+
Today we did a lot around the project. That means http://votesapp.de, the README.md, the logo and so on.
212+
We even wrote a small storyline for our demo video which was the highlight of the day.
213+
214+
I like to share our great recording setup with you:
215+
216+
![Image of our setup](diary/socks.jpg)
217+
218+
"Who cares about the clothes? The camera will record the phone only." - Walery thought :P
219+
220+
When you are going to watch the video, be prepared for the first 10 seconds.
221+
It's so funny and well acted.
222+
***Ring, Ring* ..... "Oh, i've got some message"** :)
223+
224+
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).
225+
For the documentation we used the free version of http://www.lucidchart.com.
226+
There was absolutely nothing to say against this tool.
227+
And [thats](https://raw.githubusercontent.com/s2team/votesapp/master/diary/architecture.png) the outcome of it.
228+
To stop abusing the README we tried jekyllrb on Github Pages for a more attractive page.
229+
Also jekyll impressed us by its concept.
230+
231+
On Java we replaced our `ConsoleClient` by a more modern `WebClient`.
232+
Thanks to Spring Boot replacing the left- by right handed side was an ~2,5 hours job.
233+
234+
![Image of our setup](diary/webClient.png)
235+
236+
The `WebClient` for local testing is using WebSockets with SockJS, Stomp and Bootstrap.
237+
238+
To enable it we used this two dependencies `compile("org.springframework.boot:spring-boot-starter-websocket")`,
239+
`compile("org.springframework:spring-messaging")` and added the `AbstractWebSocketMessageBrokerConfigurer` like this:
240+
241+
```
242+
@Configuration
243+
@EnableWebSocketMessageBroker
244+
public class WebSocketConfig extends AbstractWebSocketMessageBrokerConfigurer {
245+
246+
@Override
247+
public void registerStompEndpoints(StompEndpointRegistry registry) {
248+
registry.addEndpoint("/whatsapp").withSockJS();
249+
}
250+
}
251+
```
252+
That's it from java. To enable the client side we need to put our `index.html` and `stomp.js`
253+
into `/src/main/resources/static`. And it just runs like charm.

diary/socks.jpg

54.9 KB
Loading

diary/storyline.png

53.4 KB
Loading

diary/webClient.png

278 KB
Loading

0 commit comments

Comments
 (0)