I'm new to groovy and ratpack. I have read that i can simply put my entire application in a file and run it like a simple groovy script groovy filename.groovy
. When I run one example script nothing seems to happen and pointing the browser to localhost:5050
has no effect... I'm sure I'm missing something big...What I have to do in order to get started?
Do I need to start the application in some way, other than running the script?
@GrabResolver("https://oss.jfrog.org/artifactory/repo")
@Grab("io.ratpack:ratpack-groovy:0.9.0-SNAPSHOT")
import static ratpack.groovy.Groovy.*
ratpack {
handlers {
get {
response.send "Hi!"
}
assets "public"
}
}