/social-dice-roller

🦀 Rust + Rocket backend for a collaborative dice roller webapp

Primary LanguageRust

Social Dice Roller

Development

  1. Install Rust
  2. Install SQLite3
  3. Clone or fork this repo and cd to it
  4. Use Rust nightly version rustup override set nightly
  5. Install Diesel CLI cargo install diesel_cli --no-default-features --features sqlite
  6. Setup database diesel setup
  7. And then cargo run

Code coverage

To evaluate code coverage, use Tarpaulin.

  1. Install Docker
  2. Use Docker image of Tarpaulin docker run --security-opt seccomp=unconfined -v "${PWD}:/volume" xd009642/tarpaulin:develop-nightly sh -c "apt-get update && apt-get install --no-install-recommends -y sqlite3 libsqlite3-dev && cargo tarpaulin -v --exclude-files dice-roller/*"