Skip to content

gustavocadev/rust-sea-orm-axum-crud

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

30 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

A simple example about a Rest API written in Rust 🦀, axum, Sea ORM

Setup

Rename the .env.example file to .env.

Create a migration file with(which means create a table in the database):

sea-orm-cli migrate up

If you don't have sea-orm-cli installed, you can install it with:

cargo install sea-orm-cli

Run the server

cargo run

Or for development you probably want to use cargo-watch crate

cargo-watch -x run

if you don't have cargo-watch installed, you can install it with:

cargo install cargo-watch

About

A simple example of Sea ORM + Sqlite + Axum REST API

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages