How sillyvan/rust-axum-htmx-example works
Main Components
A. Frontend Layer:
• HTMX-powered client interface
• Static files (HTML, CSS)
• Vite development server
• PicoCSS styling
B. Backend Layer:
• Axum web server
• Authentication system
• Cat management system
• Sailfish template engine
• LibSQL database
[Client Tier]
• HTMX Frontend (Port: Vite Dev Server)
• Static Assets
• PicoCSS Styling
[Server Tier]
• Axum Web Server
• Handler Layer
• Auth Module (sign_in, sign_up, sign_out)
• Cats Module (CRUD operations)
• Nav Module
• Model Layer
• Cat Entity
• Owner Entity
• Utils Layer
• Token Validation
• Secret Management
[Data Tier]
• LibSQL Database
Key Interactions to Highlight
• HTMX requests from frontend to backend
• Template rendering flow (Sailfish)
• Authentication flow
• Database operations
• API endpoints for cat management
Technical Details
• Environment configuration (.env file)
• Server URL and port configuration
• Template locations and processing
• Static file serving
• Test infrastructure
Additional Elements
• Version information for major components
• Development vs production configurations
• API endpoints and their purposes