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: about 2 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 2 years ago)
- Default Branch: main
- Last Pushed: 2025-03-12T18:08:21.000Z (3 months ago)
- Last Synced: 2025-04-13T20:03:10.815Z (about 2 months ago)
- Topics: axum, docker, rust, template, web-server
- Language: Rust
- Homepage:
- Size: 143 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 situationsThis 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+)