cyrusssschen / rust-yew-starter-boilerplate

A simple boilerplate for building new project with Yew in Rust

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

rust-yew-starter-boilerplate

Netlify Status

A boilerplate for starting a Yew.

Live Demo: https://yew-starter.netlify.com

Pre-reqs

Install rust if necessary

curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh

Install node if necessary

brew install node

Getting started

  • Clone the repository
git clone --depth=1 https://github.com/cyrusssschen/rust-yew-starter-boilerplate.git <project_name>

Install dependencies

cargo install wasm-pack
cargo install cargo-web
npm install

Local development

npm start
# navigate to http://localhost:1234
npm build

Serve

npm i serve -g
serve dist
# navigate to http://localhost:5000

About

A simple boilerplate for building new project with Yew in Rust


Languages

Language:Rust 58.5%Language:HTML 36.3%Language:JavaScript 5.2%