https://github.com/olekspickle/axum-template
Axum template(with static templates) + SQLite + dockerization
https://github.com/olekspickle/axum-template
axum docker rust template web-server
Last synced: 4 months ago
JSON representation
Axum template(with static templates) + SQLite + dockerization
- Host: GitHub
- URL: https://github.com/olekspickle/axum-template
- Owner: olekspickle
- License: apache-2.0
- Created: 2023-04-18T14:31:40.000Z (about 3 years ago)
- Default Branch: main
- Last Pushed: 2025-10-22T08:58:29.000Z (9 months ago)
- Last Synced: 2026-02-20T08:50:18.107Z (5 months ago)
- Topics: axum, docker, rust, template, web-server
- Language: Rust
- Homepage:
- Size: 165 KB
- Stars: 16
- Watchers: 1
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# axum-template

### Overview
Template to have something to get-go in some situations
This template provides:
- [x] Axum server(with middleware)
- [x] Askama templates
- [x] Containerization(with compose)
- [x] Greeter page with query param name
- [x] Sqlite backend
- [ ] SurrealDB backend
## Running
```bash
# Sqlite3 backend:
make run
# surrealdb backend
make surreal
```
You can peek into Makefile for build details
### Afterthoughts and issues
I found axum to be the most ergonomic web framework out there, and while there might be not
enough examples at the moment, it is quite a breeze to use
- static files was sure one noticeable pain in the rear to figure out
- surrealdb sure adds complexity, I'm adding it under a feature because sqlite integration is
so much less crates to compile(190+ vs 500+)