Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/srid/fsharp-wasm-static-demo
A proof-of-concept demo of Bolero serverless SPA running on GitHub Pages using WebAssembly
https://github.com/srid/fsharp-wasm-static-demo
bolero fsharp serverless wasm
Last synced: 3 months ago
JSON representation
A proof-of-concept demo of Bolero serverless SPA running on GitHub Pages using WebAssembly
- Host: GitHub
- URL: https://github.com/srid/fsharp-wasm-static-demo
- Owner: srid
- Created: 2021-03-23T18:54:00.000Z (almost 4 years ago)
- Default Branch: master
- Last Pushed: 2021-03-24T03:23:04.000Z (almost 4 years ago)
- Last Synced: 2024-10-11T23:49:38.219Z (4 months ago)
- Topics: bolero, fsharp, serverless, wasm
- Language: F#
- Homepage: https://srid.github.io/fsharp-wasm-static-demo/
- Size: 11.9 MB
- Stars: 14
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
A statically hosted (serverless) [Bolero](https://fsbolero.io/) F# app demonstrating the use of .NET API ([`HttpClient`](https://docs.microsoft.com/en-us/dotnet/api/system.net.http.httpclient?view=net-5.0)) from the web browser. Specifically it talks to GitHub to display the information for the given GitHub user.
i.e., use F# (no JavaScript!) to create statically hosted sites but with dynamic behaviour and running in [WebAssembly](https://webassembly.org/): https://srid.github.io/fsharp-wasm-static-demo/
See [Blazor WebAssembly](https://docs.microsoft.com/en-ca/aspnet/core/blazor/?view=aspnetcore-5.0#blazor-webassembly) for details on the runtime and programming model.
## Running locally
```
dotnet watch -p .\src\GitHubUser\GitHubUser.fsproj run --urls http://localhost:3000
```## Full build
```
dotnet publish -c Release --self-contained -o out
```Serve the `out/wwwroot` directory statically using your web server of choice, or use GitHub Pages to deploy them directly from CI (see `.github/workflows/dotnet.yml` in this repo).