diff --git a/Cargo.toml b/Cargo.toml index 9be8ecb..9030278 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -18,6 +18,3 @@ walkdir = "2.5.0" eventsource-stream = "0.2.3" rust-embed = "8" mime_guess = "2" - -[workspace.dev-dependencies] -tempfile = "3" diff --git a/README.md b/README.md index d524c49..810c2ac 100644 --- a/README.md +++ b/README.md @@ -3,7 +3,7 @@ This app runs as a single Rust web server binary that serves the Vite/React frontend and exposes APIs. The frontend lives in the `frontend/` directory. -## Running it +## Running it in development ```bash # Build the frontend @@ -13,7 +13,20 @@ pnpm build cd .. # Run the server (serves embedded frontend/dist/) -cargo run --manifest-path server/Cargo.toml +cargo run +``` + +## Running it in production + +```bash +# Build the frontend +cd frontend +pnpm install +pnpm build +cd .. + +# Run the server (serves embedded frontend/dist/) +cargo run ``` diff --git a/frontend/.vscode/extensions.json b/frontend/.vscode/extensions.json deleted file mode 100644 index 24d7cc6..0000000 --- a/frontend/.vscode/extensions.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "recommendations": ["tauri-apps.tauri-vscode", "rust-lang.rust-analyzer"] -} diff --git a/frontend/index.html b/frontend/index.html index ff93803..db1fefc 100644 --- a/frontend/index.html +++ b/frontend/index.html @@ -1,14 +1,14 @@ -
- - - -