Skip to content

Latest commit

 

History

History
35 lines (23 loc) · 591 Bytes

README.md

File metadata and controls

35 lines (23 loc) · 591 Bytes

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