Verify that you have the WebAssembly target installed using rustup target add wasm32-unknown-unknown --toolchain nightly
Install cargo-contract. This is a command-line tool which you will use to build, deploy, and interact with your ink! contracts. You can install it using cargo install cargo-contract --version 2.0.0-rc
Compile your contract into WASM. To build a contract using cargo, navigate to the folder with contract and run cargo contract build