leptos/examples/login_with_token_csr_only
2023-03-07 14:03:54 -05:00
..
api-boundary example: Login with API token (CSR only) (#523) 2023-02-24 17:11:58 -05:00
client example: Login with API token (CSR only) (#523) 2023-02-24 17:11:58 -05:00
server Bumped tower-http upto 0.4. (#638) 2023-03-07 14:03:54 -05:00
Cargo.toml example: Login with API token (CSR only) (#523) 2023-02-24 17:11:58 -05:00
Makefile.toml examples: include missing examples in CI (#598) 2023-02-28 15:33:02 -05:00
README.md example: Login with API token (CSR only) (#523) 2023-02-24 17:11:58 -05:00

Leptos Login Example

This example demonstrates a scenario of a client-side rendered application that uses 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.