Duid
Djedou user interface design is a web framework for creating fast and interactive client side web application in Rust webassembly following Elm Architecture.
Testing
Step 0:
- Add the WebAssembly target
rustup target add wasm32-unknown-unknown - Install
wasm-packandcargo install basic-http-server
Run provided Test
cd .\examples\counter\
wasm-pack build --target web --release
basic-http-server -a 127.0.0.1:4000
Run your own test
- Move to your project root (here it is
examples/counter). - Make sure to have an index.html file in your root project that has a content like this:
<!doctype html>
duid
- Make sure to have following crate in your Cargo.toml file
duid = { path = "../../", features = ["default"] }
wasm-bindgen = "0.2"
- Run this command:
wasm-pack build --target web --release - For dev run:
basic-http-server -a 127.0.0.1:4000