This is a simple Todo app, as POC for an Leptos (WASM) application-
The application contains the basic CRUD elements including the create/update handled by a modal window. The application uses the Signal features currently from the nightly build version for an better development experience.
As bonus, the POC uses Tailwind to prettify the application. Trunk includes the Tailwind engine, so no need to install the JavaScript or Standalone version. Also available a small article from my part in French: https://www.sfeir.dev/front/explorer-linnovation-rust-et-webassembly/
-
https://www.rust-lang.org/ (nightly build)
Start the service with live reload for development:
trunk serve --open --port=8080Build a release candidate (artifacts in /dist)
trunk build --releaseor for GitHub
trunk build --release --public-url "/todo-leptos"The application is deployed on GitHub Pages.
0) Install Node dependencies (first time only; optional because test scripts will auto-install) - npm install
1) Install browsers and ensure deps are installed - npm run pw:install
2) Run tests (headless by default) - npm run test:e2e
3) Run headed (see the browser) - npm run test:e2e:headed
4) Explore last HTML report - npm run test:e2e:report