leptos/examples/login_with_token_csr_only
2023-08-21 19:31:37 -04:00
..
api-boundary ci(examples): split jobs and verify changed examples (#1155) 2023-06-13 21:29:54 -04:00
client feat/change: adopt reactive ownership model and drop cx/Scope (#918) 2023-08-21 19:31:37 -04:00
server ci(examples): split jobs and verify changed examples (#1155) 2023-06-13 21:29:54 -04:00
Cargo.toml change: migrate to nightly and csr features rather than stable and default-features = false (#1227) 2023-06-26 21:12:14 -04:00
Makefile.toml build(examples): pull up compile tasks (#1417) 2023-07-24 11:35:34 -04:00
README.md chore: typo (closes issue #645) (#646) 2023-03-08 19:52:51 -05:00

Leptos Login Example

This example demonstrates a scenario of a client-side rendered application that uses an existing API that you cannot or do not want to change. The authentications of this example are done using an API token.

Run

First start the example server:

cd server/ && cargo run

then use trunk to serve the SPA:

cd client/ && trunk serve

finally you can visit the web application at http://localhost:8080

The api-boundary crate contains data structures that are used by the server and the client.