Install Rust and Cargo following the installation guide. You need to install the latest nightly version of Rust.
Install the cargo-contract
to compile the ink! contract
cargo install cargo-contract --force
Compile the contract
cargo +nightly contract build
and run the unittests
cargo +nightly contract test