https://github.com/studyresearchprojects/yew-app-samples
Samples of WASM applications with Rust and Yew
https://github.com/studyresearchprojects/yew-app-samples
apps rust samples wasm yew
Last synced: 6 months ago
JSON representation
Samples of WASM applications with Rust and Yew
- Host: GitHub
- URL: https://github.com/studyresearchprojects/yew-app-samples
- Owner: StudyResearchProjects
- Created: 2020-10-27T22:57:08.000Z (over 5 years ago)
- Default Branch: main
- Last Pushed: 2020-10-31T20:57:25.000Z (over 5 years ago)
- Last Synced: 2025-08-04T01:01:24.205Z (6 months ago)
- Topics: apps, rust, samples, wasm, yew
- Language: Rust
- Homepage:
- Size: 24.4 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
yew-app-samples
Samples of WASM applications with Rust and Yew
## Overview
This repository contains an set of projects to explore WASM capabilities with
Rust's Front-End library Yew.
If you are familiar with either ReactJS or Elm, Yew will be familiar to you.
## Usage
Scripts to consume these projects are available in the `bin` directory.
* `build`: Builds the specified project
* `setup`: Install dependencies using `cargo`
### Running a Project
In the following sample we build the `counter` project, keep in mind that
the project to build could be any of the projects listed in the [Projects](#Projects)
section.
```bash
# build the counter project
bin/build counter
# runs the http-server in the static directory
http-server ./counter/index.html
# open your browser in http://localhost:7878
```
## Projects
* `counter`: A basic counter using Yew's callbacks and state capabilities
* `adder`: A simple sum calculator
* `auth`: CRUD application to manage persons details with a naive authentication
## References
These projects are inspired in Carlo Milanesi's book "Creative Projects for Rust
Programmers". The final projects are writen using a different setup and approach
but following the same goals.