https://github.com/olekspickle/actix-template
Actix template with static templates + SQLite + dockerization
https://github.com/olekspickle/actix-template
rust-server server-template web
Last synced: 2 months ago
JSON representation
Actix template with static templates + SQLite + dockerization
- Host: GitHub
- URL: https://github.com/olekspickle/actix-template
- Owner: olekspickle
- License: apache-2.0
- Created: 2024-10-18T17:07:52.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2024-12-27T13:53:51.000Z (over 1 year ago)
- Last Synced: 2025-03-17T19:02:34.858Z (over 1 year ago)
- Topics: rust-server, server-template, web
- Language: Rust
- Homepage:
- Size: 80.1 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# actix-template

### Overview
Template to have something to get-go in some situations
This template provides:
- [x] Actix server(with middleware)
- [x] Templates
- [x] Containerization
- [x] simple Sqlite integration setup with connection pool(deadpool)
### Afterthoughts and issues
Even if actix has some performance wins,
I generally found it less ergonomic and convenient than axum
It was still fun to check it's current state and I think that maybe it will
do better user experience oriented solutions. My immediate painpoints were:
- I could not figure out simple 404 default route handling, like in axum it's simply .not_found_service
- Reroute behaves strangely and rerenders the templates instead of just rerouting to another
handler, but it might be how the 308 status code behavior specifically works,
it does not really matter - in axum it just works
- For some reason PATCH handler simply 404 the form patch request from `/update-post/1` endpoint, I
was too lazy to figure it out
- The last might be called a nitpick, but log over tracing? Really? At this point I am just so
used for tracing being an industry standart that for me it would be a huge pain, at least until
I study log docs as much as I have tracing ecosystem.
License: MIT OR Apache-2.0