Skip to content

Jimskapt/triton-windstorm

Repository files navigation

Triton Windstorm

A rate-my-day app.

1. Edit / compile this App

This app is built in Rust and WebAssembly thanks to seed.rs framework.

A. Clone your new repository to your local machine

B. Install / check required tools

  1. Make sure you have basic tools installed:

  2. Platform-specific tools like ssl and pkg-config:

    • Follow recommendations in build errors (during the next chapter).

C. Prepare the project for edit

  1. Open the project in your favorite IDE (recommended are VS Code + Rust Analyzer).
  2. Open a new terminal tab / window and run: cargo make serve
  3. Open a second terminal tab and run: cargo make watch
  4. Open a third terminal tab and run: npm run watch

D. Edit the app

  1. Open localhost:8000 in a browser (We recommend Mozilla Firefox or Google Chrome).
  2. Modify source files (e.g. /src/lib.rs or /index.html).
  3. Watch compilation in the terminal tab where you run cargo make watch or where you run npm run watch.
  4. You can watch dev-server responses in the tab where you run cargo make serve.
  5. Refresh your browser and see changes.
  6. Go to this step 2.

E. Prepare your project for deploy

  1. Run cargo make verify in your terminal to format and lint the code.
  2. Run cargo make build_release.
  3. Upload index.html and pkg into your server's public folder.