feat: Implement Dioxus fullstack application
This commit introduces a full-stack Dioxus application with a web frontend to manage TTRPG data from a SQLite database. The application is built using a Server-Side Rendering (SSR) architecture with Axum for the web server and Dioxus for templating. This approach was chosen for its simplicity and robustness, avoiding client-side build complexities. Features include: - A web server powered by Axum. - Server-side rendered pages for Home, Creatures, Edit Creature, Import, and Changelog. - Database integration with `sqlx` to view a list of creatures and details for a single creature. - A modular structure with components, pages, and database logic separated into modules. - A navigation bar for easy access to all pages. - Placeholder pages for data import and editing functionality.
This commit is contained in:
@@ -4,3 +4,9 @@ version = "0.1.0"
|
||||
edition = "2024"
|
||||
|
||||
[dependencies]
|
||||
dioxus = { version = "0.5.1", features = ["ssr"] }
|
||||
axum = "0.7.5"
|
||||
tokio = { version = "1.37.0", features = ["full"] }
|
||||
sqlx = { version = "0.7.4", features = ["sqlite", "runtime-tokio"] }
|
||||
serde = { version = "1.0.203", features = ["derive"] }
|
||||
log = "0.4.21"
|
||||
|
Reference in New Issue
Block a user