Skip to content

Initial setup

Henry Zimmerman edited this page Jun 2, 2018 · 6 revisions

Note, this page assumes you are using Nixos.

Initially:

  1. Run cargo install cargo-watch.

Backend

  1. Clone Repo
  2. Run nix-shell.
  3. Run cargo install diesel_cli --no-default-features --features "postgres". The build is known to work on rust toolchain: rustup default nightly-2018-05-05.
  4. Navigate to the /backend/ directory.
  5. Run diesel setup.
  6. Run diesel migration run.
  7. From either /backend/ or / run cargo build --release to build in release mode.

Frontend

  1. The repo should be cloned.
  2. Run cargo install cargo-web.
  3. Run rustup target add wasm32-unknown-unknown.
  4. Navigate to /frontend/app/ and run cargo web build to build in release mode.
Clone this wiki locally