WeCode IL: Save Kermit

Preview:

Citation preview

Groovy Challenge:Save Kermit!

Victor Trakhtenberg

victortr75@gmail.com @victortr75

Save Kermit!!!

Kermit Serverhttp://localhost:8080/hinthttp://localhost:8080/whereIsKermit

The Challenge

• Find the street name• Get the secrets• Decrypt the street names (hint: reverse the

street name )• Find the highest building on the secret street– See happy Kermit!

What you will need

• Java 8• GVM• Groovy• Gradle• Kermit Server• Groovy/Java APIs

– Grape– HTTPBuilder– JsonSlurper– Collection APIs– Desktop browse URI

GVM

http://gvmtool.net/

GVM - Installation

Windows powershell:http://paweloczadly.github.io/dev/2014/07/02/gvm-on-windows/

Groovy installation

• gvm install groovy

• Mostly for windows:• http://www.groovy-lang.org/download.html

groovysh

Gradle

Gradle - install

• Using GVM– gvm install gradle 2.4

• http://gradle.org/downloads

Ratpack

Groovy Grape

http://docs.groovy-lang.org/latest/html/documentation/grape.html

HTTPBuilder

Parse JSON

Kermit Server

• https://github.com/commerce-sciences/kermit-server

• ./gradlew build• ./gradlew run

• http://localhost:8080/hint• http://localhost:8080/whereIsKermit

Recommended