Skip to content

Instantly share code, notes, and snippets.

@rnorth
Created August 28, 2013 20:18
Show Gist options
  • Save rnorth/6370697 to your computer and use it in GitHub Desktop.
Save rnorth/6370697 to your computer and use it in GitHub Desktop.
A ratpack web application in a shell script - just requires groovy (2.1+?) and JDK 1.7+ on the local machine.
#!/usr/bin/env groovy
@GrabResolver("http://oss.jfrog.org/artifactory/libs-snapshot")
@Grab("org.ratpack-framework:ratpack-groovy:0.9.0-SNAPSHOT")
import static org.ratpackframework.groovy.RatpackScript.ratpack
ratpack {
handlers {
get {
response.send "Hello ratpack!"
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment