Description
webapp.rs is an example web application written entirely in Rust, covering both the backend and the frontend. The frontend uses Leptos, compiled to WebAssembly with server side rendering and client side hydration, and the backend uses Axum through leptos_axum. Data is kept in PostgreSQL through SQLx. Authentication uses JWT tokens with automatic renewal, and passwords are hashed with Argon2. The app uses Leptos server functions to talk between the client and server, so there is no separate REST API layer, and the server and client build from a single crate into one binary. Features include user registration and login, CSRF protection through origin validation, a health check endpoint at /healthz for container orchestration, and a container build. Configuration uses environment variables for the database URL, JWT secret and listen address.…
Highlights
- Full Rust web app with Leptos frontend and Axum backend
- Server side rendering with client side hydration
- PostgreSQL storage through SQLx
- JWT sessions and Argon2 password hashing
- Single binary deployment with a health check endpoint
Ratings & Reviews
No ratings yet
Be the first to rate Webapp.rs.
People also visit
Rust Yew Realworld Example App
Exemplary real world app built with Rust + Yew + WebAssembly
Webapp.rs FAQ
What is webapp.rs?
An example full web application written in Rust, with a Leptos frontend and an Axum backend.
What do I need to run it?
Rust, cargo-leptos, PostgreSQL and the wasm32 target, as listed in the prerequisites.
How is it deployed?
As a single binary or a container, with a health check at /healthz.
What license is it under?
Apache 2.0.
What are the best Webapp.rs alternatives?
Popular alternatives to Webapp.rs include Better Auth RS, fusor and Static Web Server. See all Webapp.rs alternatives