leptos/examples/login_with_token_csr_only
2023-09-08 14:47:14 -04:00
..
api-boundary ci(examples): split jobs and verify changed examples (#1155) 2023-06-13 21:29:54 -04:00
client change: move logging macros into a logging module to avoid name conflicts with log and tracing (#1658) 2023-09-08 07:42:58 -04:00
server ci(examples): split jobs and verify changed examples (#1155) 2023-06-13 21:29:54 -04:00
Cargo.toml chore: removed resolver link warning in example (#1677) 2023-09-08 14:47: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.