svelte-axum-project
- Purpose: A project template combining Rust Axum backend with Svelte frontend for building Single-Page Applications (SPAs). Does not use SvelteKit.
- Target Audience: Developers looking for a starter template to build SPAs with Rust (Axum) backend and Svelte frontend.
- Key Features:
- Backend (Rust Axum):
- Serves frontend static files.
- Includes middleware for authorization header and session validation.
- Example routes (
/api
,/secure
) demonstrating different authorization methods. - No persistent storage (in-memory only).
- Frontend (Svelte):
- Navbar with login/logout functionality.
- Secure page displaying session info after login.
- API fetch example (no login required).
- Backend (Rust Axum):
- Svelte Support: Primary frontend framework (v4.0.5).
- Setup:
- Requires Node.js and Rust.
- Frontend built with Vite (v4.4.5).
- Recent Updates:
- Migrated to
tower-sessions
(v0.4.2). - Updated Axum to v0.6.x (v0.4.0).
- Dependency version bumps for both frontend and backend.
- Migrated to
- Template Options:
- Use
cargo generate
or GitHub template button.
- Use
- Help Wanted: Contributions for Mac/Windows build scripts.
axumbackendrustsvelte
Featured Stories
No featured articles here. Navigate to an article, then pick the Feature on menu button