leptos/examples
2023-10-19 16:15:36 -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 change: enable inline children for For by switching to children and bind: (#1773) 2023-09-26 14:24:02 -04:00
counters_stable change: enable inline children for For by switching to children and bind: (#1773) 2023-09-26 14:24:02 -04:00
directives feat: add directives with use: (#1821) 2023-10-19 16:15:36 -04:00
error_boundary fix(examples/error_boundary): ci error (#1739) 2023-09-17 20:38:03 -04:00
errors_axum change: enable inline children for For by switching to children and bind: (#1773) 2023-09-26 14:24:02 -04:00
fetch doc(examples): reference run instructions (#1705) 2023-09-13 19:57:50 -04:00
gtk v0.5.1 2023-10-06 09:40:23 -04:00
hackernews examples: fix hackernews examples oops 2023-09-29 13:36:13 -04:00
hackernews_axum examples: fix hackernews examples oops 2023-09-29 13:36:13 -04:00
hackernews_islands_axum change: enable inline children for For by switching to children and bind: (#1773) 2023-09-26 14:24:02 -04:00
hackernews_js_fetch chore: clean up style and bring into line with other hackernews examples 2023-10-11 16:45:48 -04:00
js-framework-benchmark change: enable inline children for For by switching to children and bind: (#1773) 2023-09-26 14:24:02 -04:00
login_with_token_csr_only fix: update log debug to use get_untracked for logged in user to resolve client side error (#1834) 2023-10-05 21:34:58 -04:00
parent_child doc(examples): reference run instructions (#1705) 2023-09-13 19:57:50 -04:00
portal feat: add Portal component (#1820) 2023-10-09 16:18:52 -04:00
router doc(examples): reference run instructions (#1705) 2023-09-13 19:57:50 -04:00
session_auth_axum change: enable inline children for For by switching to children and bind: (#1773) 2023-09-26 14:24:02 -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 change: generate_route_list no longer async in any integration (#1485) 2023-09-22 15:42:58 -04:00
suspense_tests chore: clippy 2023-09-29 20:36:15 -04:00
tailwind_actix examples: rename Tailwind examples (#1875) 2023-10-13 16:20:26 -04:00
tailwind_axum examples: rename Tailwind examples (#1875) 2023-10-13 16:20:26 -04:00
tailwind_csr examples: rename Tailwind examples (#1875) 2023-10-13 16:20:26 -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 change: enable inline children for For by switching to children and bind: (#1773) 2023-09-26 14:24:02 -04:00
todo_app_sqlite_viz change: enable inline children for For by switching to children and bind: (#1773) 2023-09-26 14:24:02 -04:00
todomvc change: enable inline children for For by switching to children and bind: (#1773) 2023-09-26 14:24:02 -04:00
Makefile.toml examples: rename Tailwind examples (#1875) 2023-10-13 16:20:26 -04:00
README.md feat: add Portal component (#1820) 2023-10-09 16:18:52 -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.5.0 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)