leptos/examples/login_with_token_csr_only
Joseph Cruz 8c5ab99fa7
build(examples): pull up compile tasks (#1417)
* build(examples): pull up compile tasks

* build(examples): set toolchain for compiles tasks

* build(examples): set toolchain for build and check

* build(examples): set toolchain of other examples
2023-07-24 11:35:34 -04:00
..
api-boundary ci(examples): split jobs and verify changed examples (#1155) 2023-06-13 21:29:54 -04:00
client change: migrate to nightly and csr features rather than stable and default-features = false (#1227) 2023-06-26 21:12:14 -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.