sea-orm/examples/actix_example
Billy Chan 9ca01b3e7c
Upgrade tracing-subscriber dependency to 0.3.17 (#1609)
* Upgrade `tracing-subscriber` dependency to 0.3.17

* Revert "fix: `regex` dep should enable `unicode` feature (#1605)"

This reverts commit 41d9a853342155e0b7df4afb15990225b1c8a981.
2023-04-24 14:21:15 +08:00
..
2023-03-16 18:28:04 +08:00
2023-03-16 18:28:04 +08:00
2023-03-16 18:28:04 +08:00
2022-04-02 22:00:49 +08:00
2022-02-09 11:45:04 +08:00

screenshot

Actix 4 with SeaORM example app

  1. Modify the DATABASE_URL var in .env to point to your chosen database

  2. Turn on the appropriate database feature for your chosen db in core/Cargo.toml (the "sqlx-mysql", line)

  3. Execute cargo run to start the server

  4. 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

Run mock test on the core logic crate:

cd core
cargo test --features mock