Skip to content
websharper-samplesPublic

About

A TodoMVC application for WebSharper

Resources

Stars

1 star

Watchers

8 watching

Forks

Latest commit

 

History

17 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 

Repository files navigation

TodoMVC with WebSharper UI

A TodoMVC implementation built with WebSharper and WebSharper.UI — a reactive ListModel of entries with hash routing for the All / Active / Completed filters.

screenshot

Try it live

What it shows

  • A reactive ListModel<int, TodoItem> rendered with Doc.BindListModelLens, so individual entries update without re-rendering the list.
  • Per-entry toggling, inline editing (double-click), and removal.
  • Filtering via RouteMap and hash routing (#, #active, #completed).
  • A single HTML template (src/wwwroot/index.html) loaded with ClientLoad.FromDocument and bound with .Bind().

For the Model-View-Update take on the same app, see the WebSharper.Mvu TodoMVC.

Running locally

dotnet run --project src

Then open http://localhost:5280.

Building

dotnet build src/TodoMVC.fsproj -c Release

WebSharper compiles the client and esbuild bundles it into src/wwwroot/Scripts for Release.

Deployment

Every push to master builds in Release and publishes src/wwwroot to the gh-pages branch via .github/workflows/deploy.yml.

About

A TodoMVC application for WebSharper

Resources

Stars

1 star

Watchers

8 watching

Forks

Releases

Packages

Contributors

Languages