Bukdu is a web development framework for Julia (http://julialang.org).
It's influenced by Phoenix framework (http://phoenixframework.org).
importall Bukdu
type WelcomeController <: ApplicationController
end
index(::WelcomeController) = "hello world"
Router() do
get("/", WelcomeController, index)
end
Bukdu.start(8080)
Use Endpoint
to define the plug pipelines.
- plug
Plug.Logger
to write the event logs. - plug
Plug.Static
to serve the static files. - plug
Router
to give the routes into the Endpoint.
Endpoint() do
plug(Plug.Logger)
plug(Plug.Static, at="/", from="public")
plug(Router)
end
Bukdu can be deployed on Heroku. Go to the demo site (https://bukdu.herokuapp.com).