mirror of
https://github.com/leptos-rs/leptos
synced 2024-11-10 06:44:17 +00:00
8c5ab99fa7
* 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 |
||
---|---|---|
.. | ||
api-boundary | ||
client | ||
server | ||
Cargo.toml | ||
Makefile.toml | ||
README.md |
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.