A portfolio website dedicated to showing my work in a more creative environment.
This project specifically is different as I used it as an introduction to the Rust programming language with its web assembly compilation feature. This was created utilizing the Yew framework which is very similar to React for creating front end web services.
My portfolio website is deployed on GitHub Pages here.
I am aware this could have been easily created with traditional React or even JQuery to be honest. However, as mentioned above, this project is mainly for learning Rust and it was by no means practical in comparison. 😢
The setup below follows Yew setup instrucions here.
Add WebAssembly as a compilation target:
rustup target add wasm32-unknown-unknown
Install trunk which is used for bundling WASM appliactions:
cargo install --locked trunk wasm-bindgen-cli
In the root directory, run:
trunk serve
to serve the WASM application to http://localhost:8080
.
The website is bundled for production with the following command:
trunk build --release --public-url /cr023/