LuigimonSoft/leptos-basic-template

A basic template for building a frontend application using Leptos with Rust, compiled to WebAssembly (WASM).

★ 0Forks 0RustGitHub ↗Compare

README

leptos-basic-template

A basic template for building a frontend application using Leptos with Rust, compiled to WebAssembly (WASM).

Prerequisites

Getting Started

Development server

trunk serve --open

This will compile the app to WASM and serve it at http://localhost:8080.

Production build

trunk build --release

The output will be in the dist/ directory.

Project Structure

leptos-basic-template/
├── src/
│   ├── main.rs    # Entry point
│   └── lib.rs     # Root App component
├── index.html     # HTML entry point used by Trunk
├── Trunk.toml     # Trunk configuration
└── Cargo.toml     # Rust dependencies

Dependencies

  • leptos with the csr feature for client-side rendering compiled to WASM

Contributors

LuigimonSoft

Issues