Skip to content

Latest commit

 

History

History
34 lines (25 loc) · 919 Bytes

README.md

File metadata and controls

34 lines (25 loc) · 919 Bytes

axum-template

axum-template

Overview

Template to have something to get-go in some situations

This template provides:

  • Axum server(with middleware)
  • Askama templates
  • Containerization(with compose)
  • Greeter page with query param name
  • Sqlite backend
  • SurrealDB backend

Running

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