DominicBurkart / yew-wasm-pack-template

Yew-Actix full stack PWA template

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

This template sets you up with a full-stack Rust application, with an Actix backend and a Yew frontend. It is a fork of the yew webpack starter, and uses workbox to set up a service worker configuration.

When you've downloaded the repo, and assuming that you have cargo, pip, and yarn installed, all you need to do to set it up is to run the dev install and build scripts:

sh dev_install.sh
sh build.sh

This will:

  • update rustup
  • download clippy and rustfmt if they aren't on your system
  • download precommit
  • set the precommit hooks defined in .pre-commit-config.yaml
  • compile the web application
  • compile the server application
  • run the server application

When the output of build.sh says that the server is running, you can access it at localhost:8088 (set in api/src/main.rs).

About

Yew-Actix full stack PWA template


Languages

Language:Rust 81.6%Language:HTML 9.7%Language:JavaScript 7.5%Language:Shell 1.2%