Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/sasuke40/yew-starter

A template for starting a Yew.
https://github.com/sasuke40/yew-starter

rust webassembly yew

Last synced: about 2 months ago
JSON representation

A template for starting a Yew.

Awesome Lists containing this project

README

        

# yew-starter

[![Netlify Status](https://api.netlify.com/api/v1/badges/c0ca5dfc-6d7f-4bf4-9f60-2987a9776f35/deploy-status)](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
```