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.
Scripts to consume these projects are available in the bin
directory.
build
: Builds the specified projectsetup
: Install dependencies usingcargo
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
section.
# 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
counter
: A basic counter using Yew's callbacks and state capabilitiesadder
: A simple sum calculatorauth
: CRUD application to manage persons details with a naive authentication
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.