Skip to content

Latest commit

 

History

History
52 lines (35 loc) · 1.18 KB

README.md

File metadata and controls

52 lines (35 loc) · 1.18 KB

GenieFramework

Docs

Meta package for Genie reactive apps. This packages exports

Genie, Stipple, StippleUI, StipplePlotly, Stipple.Pages, Stipple.ModelStorage.Sessions, Stipple.ReactiveTools, Genie.Renderer.Html, Genie.Server and other packages from Genie Ecosystem as required in future

Installation

To install the most recent released version of package:

pkg> add GenieFramework

Usage

Basic application

Create a simple app.jl script

module App

using GenieFramework
@genietools

d₁ = PlotData(x=[1, 2, 3], y=[4, 1, 2], plot=StipplePlotly.Charts.PLOT_TYPE_BAR, name="Barcelona")
d₂ = PlotData(x=[1, 2, 3], y=[2, 4, 5], plot=StipplePlotly.Charts.PLOT_TYPE_BAR, name="London")

@app begin
    @out data = [d₁, d₂]
    @out layout = PlotLayout()
end

function ui()
    [
        h1("GenieFramework 🧞 Data Vizualization 📊")
        plot(:data, layout=:layout)
    ]
end

@page("/", ui)

end
julia> using GenieFramework; Genie.loadapp(); Server.isrunning() || up(async=false);

should start the app at localhost:8000