leptos/examples
2023-09-18 22:46:03 -04:00
..
animated_show doc(examples): reference run instructions (#1705) 2023-09-13 19:57:50 -04:00
cargo-make fix(examples/error_boundary): ci error (#1739) 2023-09-17 20:38:03 -04:00
counter doc(examples): reference run instructions (#1705) 2023-09-13 19:57:50 -04:00
counter_isomorphic doc(examples): reference run instructions (#1705) 2023-09-13 19:57:50 -04:00
counter_url_query doc(examples): reference run instructions (#1705) 2023-09-13 19:57:50 -04:00
counter_without_macros doc(examples): reference run instructions (#1705) 2023-09-13 19:57:50 -04:00
counters doc(examples): reference run instructions (#1705) 2023-09-13 19:57:50 -04:00
counters_stable doc(examples): reference run instructions (#1705) 2023-09-13 19:57:50 -04:00
error_boundary fix(examples/error_boundary): ci error (#1739) 2023-09-17 20:38:03 -04:00
errors_axum doc(examples): reference run instructions (#1705) 2023-09-13 19:57:50 -04:00
fetch doc(examples): reference run instructions (#1705) 2023-09-13 19:57:50 -04:00
gtk feat/change: adopt reactive ownership model and drop cx/Scope (#918) 2023-08-21 19:31:37 -04:00
hackernews feat: make Transition set_pending use #[prop(into)] (#1746) 2023-09-18 22:46:03 -04:00
hackernews_axum feat: make Transition set_pending use #[prop(into)] (#1746) 2023-09-18 22:46:03 -04:00
hackernews_islands_axum feat: make Transition set_pending use #[prop(into)] (#1746) 2023-09-18 22:46:03 -04:00
js-framework-benchmark doc(examples): reference run instructions (#1705) 2023-09-13 19:57:50 -04:00
leptos-tailwind-axum doc(examples): reference run instructions (#1705) 2023-09-13 19:57:50 -04:00
login_with_token_csr_only fix(examples/build): do not require stop to end trunk (#1713) 2023-09-14 17:07:16 -04:00
parent_child doc(examples): reference run instructions (#1705) 2023-09-13 19:57:50 -04:00
router doc(examples): reference run instructions (#1705) 2023-09-13 19:57:50 -04:00
session_auth_axum doc(examples): reference run instructions (#1705) 2023-09-13 19:57:50 -04:00
slots doc(examples): reference run instructions (#1705) 2023-09-13 19:57:50 -04:00
ssr_modes doc(examples): reference run instructions (#1705) 2023-09-13 19:57:50 -04:00
ssr_modes_axum doc(examples): reference run instructions (#1705) 2023-09-13 19:57:50 -04:00
suspense_tests doc(examples): reference run instructions (#1705) 2023-09-13 19:57:50 -04:00
tailwind doc(examples): reference run instructions (#1705) 2023-09-13 19:57:50 -04:00
tailwind_csr_trunk doc(examples): reference run instructions (#1705) 2023-09-13 19:57:50 -04:00
timer doc(examples): reference run instructions (#1705) 2023-09-13 19:57:50 -04:00
todo_app_sqlite doc(examples): reference run instructions (#1705) 2023-09-13 19:57:50 -04:00
todo_app_sqlite_axum doc(examples): reference run instructions (#1705) 2023-09-13 19:57:50 -04:00
todo_app_sqlite_viz doc(examples): reference run instructions (#1705) 2023-09-13 19:57:50 -04:00
todomvc doc(examples): reference run instructions (#1705) 2023-09-13 19:57:50 -04:00
Makefile.toml fix: exclude markdown files from examples lists (#1716) 2023-09-14 16:58:46 -04:00
README.md doc(examples): reference run instructions (#1705) 2023-09-13 19:57:50 -04:00
SSR_NOTES.md doc(examples): reference run instructions (#1705) 2023-09-13 19:57:50 -04:00

Examples README

Main Branch

The examples in this directory are all built and tested against the current main branch.

To the extent that new features have been released or breaking changes have been made since the previous release, the examples are compatible with the main branch but not the current release.

To see the examples as they were at the time of the 0.4.9 release, click here.

Cargo Make

Cargo Make is used to build, test, and run examples.

Here are the highlights.

  • Extendable custom task files are located in the cargo-make directory
  • Running a task will automatically install cargo dependencies
  • Each Makefile.toml file must extend the cargo-make/main.toml file
  • cargo-make files that end in *-test.toml configure web testing strategies
  • Run cargo make test-report to learn which examples have web tests

Getting Started

Follow these steps to get any example up and running.

  1. cd to the example root directory
  2. Run cargo make ci to setup and test the example
  3. Run cargo make start to run the example
  4. Open the client URL in the console output (http://127.0.0.1:8080 or http://127.0.0.1:3000 by default)

Prerequisites

Example projects depend on the following tools. Please install them as needed.

  • Rust
  • Nightly Rust
    • Run rustup toolchain install nightly
    • Run rustup target add wasm32-unknown-unknown
  • Cargo Make
    • Run cargo install --force cargo-make
    • Setup a command alias like alias cm='cargo make' to reduce typing (Optional)
  • Node Version Manager (Optional)
  • Node.js
  • pnpm (Optional)