mirror of
https://github.com/Xevion/xevion.dev.git
synced 2026-01-31 02:26:38 -06:00
feat: add PostgreSQL database integration for projects
- Add SQLx with Postgres support and migration system - Create projects table with status enum and auto-updated timestamps - Implement database queries and API response conversion layer - Add Justfile commands for database management and seeding - Integrate health checks for both Bun and database connectivity
This commit is contained in:
@@ -2,6 +2,7 @@
|
||||
name = "api"
|
||||
version = "0.1.0"
|
||||
edition = "2024"
|
||||
default-run = "api"
|
||||
|
||||
[dependencies]
|
||||
aws-config = "1.8.12"
|
||||
@@ -9,6 +10,7 @@ aws-sdk-s3 = "1.119.0"
|
||||
axum = "0.8.8"
|
||||
clap = { version = "4.5.54", features = ["derive", "env"] }
|
||||
dashmap = "6.1.0"
|
||||
dotenvy = "0.15"
|
||||
futures = "0.3.31"
|
||||
include_dir = "0.7.4"
|
||||
mime_guess = "2.0.5"
|
||||
@@ -17,6 +19,7 @@ rand = "0.9.2"
|
||||
reqwest = { version = "0.13.1", default-features = false, features = ["rustls", "charset", "json", "stream"] }
|
||||
serde = { version = "1.0.228", features = ["derive"] }
|
||||
serde_json = "1.0.148"
|
||||
sqlx = { version = "0.8", features = ["runtime-tokio", "tls-rustls", "postgres", "uuid", "time", "migrate"] }
|
||||
time = { version = "0.3.44", features = ["formatting", "macros"] }
|
||||
tokio = { version = "1.49.0", features = ["full"] }
|
||||
tokio-util = { version = "0.7.18", features = ["io"] }
|
||||
@@ -25,3 +28,4 @@ tower-http = { version = "0.6.8", features = ["trace", "cors", "limit"] }
|
||||
tracing = "0.1.44"
|
||||
tracing-subscriber = { version = "0.3.22", features = ["env-filter", "json"] }
|
||||
ulid = { version = "1", features = ["serde"] }
|
||||
uuid = { version = "1", features = ["serde", "v4"] }
|
||||
|
||||
Reference in New Issue
Block a user