Prerequisites
Before you start, make sure you:- Install the Turso CLI
- Sign up or login to Turso
- Have an Axum app — learn more
Retrieve database credentials
You will need an existing database to continue. If you don’t have one, create one.
Get database URL
Get database URL
Create database auth token
Create database auth token
You will want to store these as environment variables.
Add the libsql crate to the project
Optionally, you can add a package such as
dotenvy to help you work with .env files:Examples
Turso + Axum Todo List
See the full source code