leptos/examples/login_with_token_csr_only
Kaszanas 9ed3390b81
examples: updated proxy settings in login_with_token_csr_only (#771)
When testing this example on Windows OS the initial value of `0.0.0.0:3000` for the IP did not work.
2023-03-31 14:44:06 -04:00
..
api-boundary example: Login with API token (CSR only) (#523) 2023-02-24 17:11:58 -05:00
client examples: updated proxy settings in login_with_token_csr_only (#771) 2023-03-31 14:44:06 -04: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 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.