An open API service indexing awesome lists of open source software.

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

Awesome Lists containing this project

README

          

# actix-template

![actix-template](https://github.com/user-attachments/assets/2a7ea246-d0a6-48d9-9954-11536fb4484a)

### 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