Creating and deploying a minimal axum app with loco
toc
- create axum app with loco
- build axum app with docker
create axum app with loco
loco lets you scaffold axum apps in a preditible manner.
create a new minimal axum app:
start local app:
build axum app with docker
use loco to create a simple dockerfile for deployment (this will create a dockerfile and a .dockerignore file.
build the app:
running production container locally
if we just run our container with no args we will get the loco-cli help menu:
to start the app run start: