A super basic jruby example for Edge Vertx framework
include Java
import com.darylteo.edge.core.EdgeApplication
import com.darylteo.edge.core.requests.EdgeHandler
import com.darylteo.edge.core.requests.EdgeRequest
import com.darylteo.edge.core.requests.EdgeResponse
class BasicExample
def start
edge = EdgeApplication.new
edge.get("/", lambda do |request, response|
response.renderText("This is the index page")
end)
edge.listen 8080, "localhost"
end
end
example = BasicExample.new
example.start