Skip to content

Latest commit

 

History

History
49 lines (32 loc) · 1019 Bytes

README.md

File metadata and controls

49 lines (32 loc) · 1019 Bytes

TownHall Web Front-End

Development

Requirements

First Time Setup

  1. Install Trunk Rust bundler from here
  2. Install Just (Justfile) Rust command runner here
  3. Make sure the wasm32-unkown-unknown target is installed if not you can use
rustup target add wasm32-unknown-unknown
  1. Run the project using just web-dev command
just web-dev

Running Tests

Tests runs in a Headless Browser using wasm-bindgen-test and wasm-bindgen-test-runner

You must install wasm-pack:

cargo install wasm-pack

Then run the tests using just web-test command

just web-test

The first time the Headless Browser is installed to the temporal directory for your system. Then it is cached for future runs, so expect a bit of delay the first time you run the tests.

License

Licensed under the MIT License