Skip to content

EstebanBorai/yew-app-samples

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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 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

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.

About

Samples of WASM applications with Rust and Yew

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published