Minor changes to server
This commit is contained in:
parent
006d9d9160
commit
c576287eea
3 changed files with 26 additions and 1 deletions
21
backend/sync_server/Cargo.toml
Normal file
21
backend/sync_server/Cargo.toml
Normal file
|
|
@ -0,0 +1,21 @@
|
|||
[package]
|
||||
name = "sync_server"
|
||||
version = "0.1.0"
|
||||
edition = "2021"
|
||||
|
||||
[dependencies]
|
||||
reconcile = { path = "../reconcile" }
|
||||
sync_lib = { path = "../sync_lib" }
|
||||
|
||||
serde = {workspace = true}
|
||||
thiserror = {workspace = true}
|
||||
anyhow = {workspace = true}
|
||||
log = {workspace = true}
|
||||
uuid = {workspace = true}
|
||||
|
||||
axum = { version = "0.7.9", features = ["ws", "macros"]}
|
||||
tokio = { version = "1.42.0", features = ["full"]}
|
||||
tracing-subscriber = "0.3.19"
|
||||
serde_yaml = "0.9.34"
|
||||
sqlx = { version = "0.8.2", features = ["sqlite", "runtime-tokio", "uuid", "chrono"] }
|
||||
chrono = { version = "0.4.38", features = ["serde"] }
|
||||
5
backend/sync_server/README.md
Normal file
5
backend/sync_server/README.md
Normal file
|
|
@ -0,0 +1,5 @@
|
|||
|
||||
cargo install sqlx-cli
|
||||
rm sync_server/test.db && sqlx database create --database-url sqlite://sync_server/test.db
|
||||
sqlx migrate run --source sync_server/src/database/migrations --database-url sqlite://sync_server/test.db
|
||||
DATABASE_URL=sqlite://sync_server/test.db cargo sqlx prepare --workspace
|
||||
|
|
@ -9,7 +9,6 @@ use anyhow::{Context, Result};
|
|||
use app_state::AppState;
|
||||
use errors::{init_error, SyncServerError};
|
||||
use server::create_server;
|
||||
use std::sync::Arc;
|
||||
|
||||
#[tokio::main]
|
||||
async fn main() -> Result<(), SyncServerError> {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue