dummy-link

Bukdu

Bukdu 🌌 is a web development framework for Julia

Readme

Bukdu 🌌

Documentation Build Status
[![][docs-latest-img]][docs-latest-url] [![][travis-img]][travis-url] [![][appveyor-img]][appveyor-url] [![][codecov-img]][codecov-url]

Bukdu 🌌 is a web development framework for Julia (https://julialang.org).

It's influenced by Phoenix framework (http://phoenixframework.org).

using Bukdu

struct WelcomeController <: ApplicationController
    conn::Conn
end

function index(c::WelcomeController)
    render(JSON, "Hello World")
end

routes() do
    get("/", WelcomeController, index)
end

Bukdu.start(8080)

RESTful API Demo

Visit Bukdu sevenstars on Heroku and check its source code. (A sleeping heroku page, it will become active again after a short delay.)

Modifying actions at runtime

Bukdu/examples $ julia -i welcome.jl
               _
   _       _ _(_)_     |  A fresh approach to technical computing
  (_)     | (_) (_)    |  Documentation: https://docs.julialang.org
   _ _   _| |_  __ _   |  Type "?help" for help.
  | | | | | | |/ _` |  |
  | | |_| | | | (_| |  |  Version 0.7.0-DEV.4722 (2018-03-29 19:53 UTC)
 _/ |\__'_|_|_|\__'_|  |  Commit 8a5f74724c (0 days old master)
|__/                   |  x86_64-apple-darwin17.4.0

INFO: Bukdu Listening on: 127.0.0.1:8080
julia> function index(c::WelcomeController)
           render(JSON, "Love")
       end
index (generic function with 1 method)
```
That's it! Refresh your page of the web browser.


### Requirements

The project has reworked based on [HTTP.jl](https://github.com/JuliaWeb/HTTP.jl) in [Julia 0.7 DEV](https://julialang.org/downloads/nightlies.html).

using Pkg Pkg.clone("https://github.com/wookay/Bukdu.jl.git") Pkg.checkout("Bukdu", "sevenstars")




[docs-latest-img]: https://img.shields.io/badge/docs-latest-blue.svg
[docs-latest-url]: https://wookay.github.io/docs/Bukdu.jl/

[travis-img]: https://api.travis-ci.org/wookay/Bukdu.jl.svg?branch=sevenstars
[travis-url]: https://travis-ci.org/wookay/Bukdu.jl

[appveyor-img]: https://ci.appveyor.com/api/projects/status/v1af95637qm7j582/branch/sevenstars?svg=true
[appveyor-url]: https://ci.appveyor.com/project/wookay/bukdu-jl/branch/sevenstars

[codecov-img]: https://codecov.io/gh/wookay/Bukdu.jl/branch/sevenstars/graph/badge.svg
[codecov-url]: https://codecov.io/gh/wookay/Bukdu.jl/branch/sevenstars

First Commit

08/21/2016

Last Touched

10 days ago

Commits

198 commits

Used By: