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
- Host: GitHub
- URL: https://github.com/genieframework/genieframework.jl
- Owner: GenieFramework
- License: mit
- Created: 2022-09-20T09:46:12.000Z (almost 4 years ago)
- Default Branch: main
- Last Pushed: 2025-01-31T00:26:34.000Z (over 1 year ago)
- Last Synced: 2025-03-02T16:09:59.961Z (over 1 year ago)
- Language: Julia
- Size: 56.6 KB
- Stars: 21
- Watchers: 3
- Forks: 1
- Open Issues: 5
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# GenieFramework
[](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`