* introduce rustfmt * Cargofmt on all sea-orm crates & examples * Revert testing script * cargo fmt --manifest-path sea-orm-rocket/Cargo.toml --all * add a script for formatting * add nightly component for formatting * set timeout and manual nightly install in github action * add flag for manifest-path Co-authored-by: Billy Chan <ccw.billy.123@gmail.com>
Actix 4 with SeaORM example app
-
Modify the
DATABASE_URL
var in.env
to point to your chosen database -
Turn on the appropriate database feature for your chosen db in
Cargo.toml
(the"sqlx-mysql",
line) -
Execute
cargo run
to start the server -
Visit localhost:8000 in browser
Run server with auto-reloading:
cargo install systemfd cargo-watch
systemfd --no-pid -s http::8000 -- cargo watch -x run