-
Project Structure
- Tauri v2 application initialized
- Vanilla JS frontend (no framework)
- Rust backend with daemon management
- Sidecar binary configuration
-
Files Created
index.html- Main HTML with splash screen and dashboard placeholderstyles.css- Dark theme styling matching your website (#af0 accent, #0a0a0a background)main.js- Frontend logic for splash fade and daemon detectionsrc-tauri/src/main.rs- Rust backend with daemon spawningsrc-tauri/Cargo.toml- Rust dependenciessrc-tauri/tauri.conf.json- Tauri configurationsetup.sh- Helper script to copy blocknet binary
-
Splash Screen Implementation
- Pure #AF0 background (lime green)
- Centered blocknet.png logo
- No text, no loading bar (as requested)
- 1-second linear opacity fade on completion
- Auto-removes from DOM 2 seconds after fade completes
-
Daemon Management
- Binary copied from
/Users/dh/Projects/blocknet/blocknet - Spawns with args:
--daemon --wallet wallet.dat --data ./data - Frontend polls for
api.cookiefile every 500ms - Max timeout: 30 seconds
- On success: triggers splash fade
- Binary copied from
The app is currently compiling Rust dependencies (399 total packages). This will take 3-5 minutes on first run.
- Test the splash screen → dashboard transition
- Verify daemon starts correctly
- Verify api.cookie detection works
- Begin implementing Dashboard view with:
- Balance display
- Node status
- Quick stats grid
- App data directory:
~/Library/Application Support/com.blocknet.wallet/(macOS) - Wallet file:
{app_data}/wallet.dat - Data directory:
{app_data}/data/ - API cookie:
{app_data}/data/api.cookie
npm run devThis starts:
- Python HTTP server on port 1420 (serves frontend files)
- Tauri dev build (compiles Rust, launches window)
- Daemon binary in background