blog/backend
SquidSpirit ce65078e8d
All checks were successful
Frontend CI / build (push) Successful in 1m11s
Auto Comment On PR / add_improve_comment (pull_request) Successful in 13s
PR Title Check / pr-title-check (pull_request) Successful in 16s
BLOG-128 fix: logic for determining published post access based on user login status
2025-08-12 16:11:47 +08:00
..
2025-08-06 23:01:34 +08:00
2025-08-06 23:01:34 +08:00

Backend

Development

SQL Migration

  1. Install sqlx

    cargo install sqlx-cli
    
  2. Run migration

    sqlx migrate run
    

Run Project

  1. Prepare for sql schema setup

    cargo sqlx prepare --workspace
    
  2. Run the server

    RUST_LOG=debug cargo run
    
  3. (Optional) Hot restart

    1. Install watchexec

    2. Run the server with watchexec

      RUST_LOG=debug watchexec -e rs -r 'cargo run'