- Added `anyhow` and `sentry` dependencies to the backend and feature crates. - Introduced `SentryConfiguration` to manage Sentry settings. - Updated error handling in various services to use `anyhow::Error` for unexpected errors. - Captured errors using Sentry in the web handlers for better observability. - Removed specific database error handling in favor of a more generic unexpected error handling. - Configured Sentry in the main application entry point and wrapped the Actix app with Sentry middleware.
Backend
Development
SQL Migration
-
Install sqlx
cargo install sqlx-cli
-
Run migration
sqlx migrate run
Run Project
-
Prepare for sql schema setup
cargo sqlx prepare --workspace
-
Run the server
RUST_LOG=debug cargo run
-
(Optional) Hot restart
-
Install
watchexec
-
Run the server with
watchexec
RUST_LOG=debug watchexec -e rs -r 'cargo run'
-