All checks were successful
Frontend CI / build (push) Successful in 1m9s
This commit introduces the capability to upload and serve images. A new `image` feature module has been added to the backend, following the existing clean architecture pattern. - Implements `POST /image/upload` for uploading image files. - Implements `GET /image/{id}` for retrieving an image by its ID. - Adds a new `image` table to the database to store image metadata. - Image data is stored in the file system. The path can be configured via the `STORAGE_PATH` environment variable.
503 B
503 B
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'
-