https://github.com/sasuke40/yew-starter
A template for starting a Yew.
https://github.com/sasuke40/yew-starter
rust webassembly yew
Last synced: 3 months ago
JSON representation
A template for starting a Yew.
- Host: GitHub
- URL: https://github.com/sasuke40/yew-starter
- Owner: SASUKE40
- License: mit
- Created: 2020-01-04T16:28:27.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2023-01-07T13:26:13.000Z (over 2 years ago)
- Last Synced: 2025-03-27T23:41:48.246Z (4 months ago)
- Topics: rust, webassembly, yew
- Language: Rust
- Homepage: https://yew-starter.netlify.com
- Size: 650 KB
- Stars: 34
- Watchers: 1
- Forks: 4
- Open Issues: 9
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# yew-starter
[](https://app.netlify.com/sites/yew-starter/deploys)
A template 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/SASUKE40/yew-starter.git
```## Install dependencies
```
cargo install wasm-pack
cargo install cargo-web
npm i
```## Local development
```
npm start
# navigate to http://localhost:1234
``````
npm build
```## Serve
```
npm i serve -g
serve dist
# navigate to http://localhost:5000
```