https://github.com/djedou/duid
Djedou UI Design in Rust
https://github.com/djedou/duid
Last synced: about 2 months ago
JSON representation
Djedou UI Design in Rust
- Host: GitHub
- URL: https://github.com/djedou/duid
- Owner: djedou
- License: mit
- Created: 2022-12-03T06:27:46.000Z (over 2 years ago)
- Default Branch: master
- Last Pushed: 2023-05-19T13:09:56.000Z (about 2 years ago)
- Last Synced: 2025-03-02T21:45:44.566Z (3 months ago)
- Language: Rust
- Size: 1.36 MB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Duid
**D**jedou **u**ser **i**nterface **d**esign is a web framework for creating fast and interactive client side web application in **Rust webassembly** following [**Elm Architecture**](https://guide.elm-lang.org/architecture/).# Testing
## Step 0:
1. Add the WebAssembly target
```rustup target add wasm32-unknown-unknown```
2. Install ```wasm-pack``` and ```cargo 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
1. Move to your project root (here it is ```examples/counter```).
2. Make sure to have an **index.html** file in your root project that has a content like this:
```
duid
import init, { duid } from './pkg/index.js';
(async () => {
await init();
await duid(document.querySelector('#app'));
})();
```
3. Make sure to have following crate in your **Cargo.toml** file
```
duid = { path = "../../", features = ["default"] }
wasm-bindgen = "0.2"
```
4. Run this command: ```wasm-pack build --target web --release```
5. For dev run: ```basic-http-server -a 127.0.0.1:4000```