/spin-sample-leptos-rs

Sample application with Leptos-rs and Spin

Primary LanguageRust

Project

spin-sample-leptos-rs is a sample app based on leptos-rs + Fermyon Spin.

It uses leptos_oidc to connect with an auth0 OIDC Provider.

Configuration

Create the .env file

cp .env-sample .env

Edit the .env file:

  • SPIN_VARIABLE_AUTH0_CLIENT_ID: OIDC client_id token
  • SPIN_VARIABLE_AUTH0_DOMAIN: Auth0 Domain

Setup

# install tooling
cargo install trunk just

Start app locally with Spin on watch mode

To start the application

just watch

Start app locally with Spin

To start the application

just up

Start frontend locally with Trunk

To start the frontend

just serve