A statically linked app built with React and Rust. Based on this blog post by Anders Pitman.
React development
# Just the React app: use webpack-dev-server
cd ui
npm run start
# Access at http://localhost:5000
Rust development
# Build the React app first
cd ui
npm run build
# Build and run the Rust app
cd ..
cargo run
# or build with nightly...
cargo +nightly run
# Access at http://localhost:5000
Production
# Build the React app
cd ui
npm run build
# Build the Rust app
cd ..
cargo build --release
# Run the binary
./target/release/react-rust
# Access at http://localhost:5000