leptos/examples/login_with_token_csr_only
agilarity 630da4212d
fix: lint issues in login_with_token_csr_only example (#995)
* build: add common tasks

* test: resolve check-style issues
2023-05-05 11:26:09 -04:00
..
api-boundary fix: lint issues in login_with_token_csr_only example (#995) 2023-05-05 11:26:09 -04:00
client fix: lint issues in login_with_token_csr_only example (#995) 2023-05-05 11:26:09 -04:00
server fix: lint issues in login_with_token_csr_only example (#995) 2023-05-05 11:26:09 -04:00
Cargo.toml Add profile.release to many examples 2023-04-06 21:53:52 -05:00
Makefile.toml fix: lint issues in login_with_token_csr_only example (#995) 2023-05-05 11:26:09 -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.