An open API service indexing awesome lists of open source software.

https://github.com/genieframework/genieframework.jl

Meta package for Genie reactive apps
https://github.com/genieframework/genieframework.jl

Last synced: over 1 year ago
JSON representation

Meta package for Genie reactive apps

Awesome Lists containing this project

README

          

# GenieFramework

[![Docs](https://img.shields.io/badge/genieframework-docs-greenyellow)](https://www.genieframework.com/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
```julia
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
```

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

should start the app at `localhost:8000`