Krzysztof-Cieslak / SaturnWebsocketElmish

Sample for using Saturn with websocketsc and Fable/Elmish

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Saturn + Websockets + Fable

Sample for using Saturn with websockets and Fable/Elmish. Initial data is loaded from the server. Then press the big green button to start "background job" (i.e. timer) that will generate new data and push it to the client with web socket.

Second big green button starts another "background job" that will push images url into the client and display the image in the UI.

Install pre-requisites

You'll need to install the following pre-requisites in order to build SAFE applications

  • The .NET Core SDK
  • FAKE 5 installed as a global tool
  • The Yarn package manager (you an also use npm but the usage of yarn is encouraged).
  • Node LTS installed for the front end components.
  • If you're running on OSX or Linux, you'll also need to install Mono.

Work with the application

To concurrently run the server and the client components in watch mode use the following command:

fake build -t Run

Troubleshooting

  • fake not found - If you fail to execute fake from command line after installing it as a global tool, you might need to add it to your PATH manually: (e.g. export PATH="$HOME/.dotnet/tools:$PATH" on unix) - related GitHub issue

About

Sample for using Saturn with websocketsc and Fable/Elmish


Languages

Language:F# 92.0%Language:JavaScript 6.8%Language:HTML 1.2%