Skip to content

Latest commit

 

History

History
54 lines (38 loc) · 1.49 KB

README.md

File metadata and controls

54 lines (38 loc) · 1.49 KB

yew-rust-mart

🛒 Simple e-commerce SPA made with Yew

Running Locally

Install required packages

cargo install wasm-pack
cargo install cargo-make
cargo install simple-http-server

Build the project

Theres 2 ways available to build the project, either using wasm-pack only or by using wasm-back through the make task.

# using wasm-pack only
bash ./build.sh

# using the make task
cargo make build

Running the Simple HTTP Server

After building the project, you can run an HTTP server to serve the files. Is important to note that the HTTP Server in question must have support for wasm.

If you have installed the simple-http-server then you can run the following, in the current directory:

cd ./static/ && simple-http-server

And then, open your browser in http://localhost:8000/

Motivation

Follow Sheshbabu Chinnakonda's post on Single Page Applications using Rust to learn more about Rust for the Front-End development.

Sheshbabu GitHub