https://github.com/jwosty/interstellarfablehelloworld
A sample Interstellar application with a UI built in Fable+Elmish+React
https://github.com/jwosty/interstellarfablehelloworld
fable fable-elmish-react interstellar
Last synced: over 1 year ago
JSON representation
A sample Interstellar application with a UI built in Fable+Elmish+React
- Host: GitHub
- URL: https://github.com/jwosty/interstellarfablehelloworld
- Owner: jwosty
- Created: 2020-01-10T19:23:39.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2023-01-06T02:25:12.000Z (over 3 years ago)
- Last Synced: 2023-05-10T20:42:25.504Z (about 3 years ago)
- Topics: fable, fable-elmish-react, interstellar
- Language: F#
- Homepage:
- Size: 1.04 MB
- Stars: 5
- Watchers: 2
- Forks: 2
- Open Issues: 6
-
Metadata Files:
- Readme: Readme.md
Awesome Lists containing this project
README
# Interstellar+Fable Hello World
This is a standalone application that integrates [Interstellar](https://github.com/jwosty/Interstellar) and [Fable](https://fable.io/). It's analagous to using [Electron](https://electronjs.org), except that it employs F# for the whole stack instead of Javascript. This app features a simple GUI built with [Elmish-React](https://elmish.github.io/react/). This can be run using Visual Studio just like any other application.
Here are the interesting bits to look at:
* [HelloWorld.FableUI/FableApp.fs](HelloWorld.FableUI/FableApp.fs) - the Fable+Elmish+React UI, written in F# and transpiled to Javascript
* [HelloWorld.Interstellar/App.fs](HelloWorld.Interstellar/App.fs) - the Interstellar BrowserApp definition, which handles the lifecycle of the windows, and also hosts and simple static file server for the transpiled Javascript
* [HelloWorld.Windows/Program.fs](HelloWorld.Windows/Program.fs) - the Windows entry point
* [HelloWorld.macOS/AppDelegate.fs](HelloWorld.macOS/AppDelegate.fs) - the macOS entry point
## Running
On Windows, open HelloWorld.Windows.sln and run. On macOS, open HelloWorld.macOS.sln, but make sure to execute `yarn install` in the command line before running the solution.