

Creating Static Web Apps With F# and Fable
source link: https://www.aaron-powell.com/posts/2021-07-09-creating-static-web-apps-with-fsharp-and-fable/
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.

Creating Static Web Apps With F# and Fable
While I’ve done lots of stuff with F# over the years, it’s pretty much all centred around apps on the server. With Azure Static Web Apps being a big area for myself these days I’ve been looking at the role that F# plays with it.
This led me to have a proper look at Fable. Fable is a F# to JavaScript compiler, meaning you can write F# code and have it compiled to JavaScript, which is then run in the browser (or in a Node.js/Electron/etc. but I’m focusing on the browser usage).
So, in an effort to make it easier to get started with Fable and Static Web Apps, I’ve put together three GitHub repo templates. All the templates have a common Azure Function backend (using F#), use Paket for dependency management, Vite for bundling the JavaScript (I wanted to avoid webpack), Thoth.Fetch for calling the API and a VS Code Remote Container config to setup an F# environment. For the client, there’s Fable, Feliz (a React DSL in F#) and Elmish (a Model-View-Update pattern).
I’ve also included some instructions on deploying to SWA, as it’s a bit tricker than a normal app.
Check out the templates, and let me know if there’s anything you’d like to see in them to make it easier to get started with F# and Static Web Apps.
Published: 2021-07-09 03:39:31 +0000 UTC, Version: 1e7edeaRecommend
-
18
Azure Static Web Apps with .NET and Blazor Aaron...
-
25
SAFE Stack Web Apps on Azure Static Web AppsSAFE Stack Web Apps on Azure Static Web Apps - YouTube
-
8
david whitney, agile & software practices in londonDavid Whitney Azure Static Web Apps Are Awesome!
-
6
Blazor, TypeScript and Static Web AppsThursday, Jun 24, 2021 6 minute read Tags: javascript webdev
-
47
Fable.Lit Fable.Lit is a collection of tools to help you write Fable apps by embedding HTML code into your F# code with the power of lit-h...
-
8
-
1
Write Front-End Apps For The Web In F# Fable - Write Front-End Apps For The Web In F# Written by Nikos Vaggalis Tuesday, 26 October 2021 How would it sound to be able to write front-end apps for the We...
-
8
Fable.Lit is a comprehensive suite of tools to write Fable apps by embedding HTML into your F# code with the power of Google's Lit. It's an exciting developmen...
-
24
Azure Static Web Apps: Node.js 16 and OryxMay 28, 2022 · 2 min readAzure Static Web Apps presently fixes to Node.js 14 when building. If you require a different version of No...
-
7
October 01, 2022 at 09:41 Tags Go ,
About Joyk
Aggregate valuable and interesting links.
Joyk means Joy of geeK