Skip to content
/ axum-template Public template

Axum template(with static templates) + SQLite + dockerization

Notifications You must be signed in to change notification settings

olekspickle/axum-template

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

32 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

Axum template(with static templates) + SQLite + dockerization

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published