First prepare the prerequisites and enter the following codes after starting.
So let's go! step by step
I am using Bitvise SSH Client
software to run the commands.
When you connected by SSH to your server I copy and paste the commands line by line to prepare prerequisites on our server, so let's do it.|
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh
next
source $HOME/.cargo/env
next
rustup install stable
next
rustup update stable
next
rustup default stable
next
git clone https://github.com/AleoHQ/leo
cd leo
next
apt install clang gcc libssl-dev pkg-config
next
cargo install --path .
next
git clone https://github.com/AleoHQ/snarkOS.git --depth 1
cd snarkOS
next
./build_ubuntu.sh
And last one for this part
cargo install --path .
At this point, you must have received Faucet via Twitter or SMS.
so befor to get faucet you should visit this site to put your wallet address in green list.
When you done this step we can get our faucet by SMS, to do that we can throw a text message to
number : +1867-888-5688
Send 10 credits to aleo... (Your wallet address)
to get faucet by Twitter twite below line :
@AleoFaucet send 10 credits to aleo... (Your wallet address)
So excited till now 😍 when you received the faucet on your wallet try to run the final commands line by line. let's do it.
First command
cd $HOME
next
mkdir demo_deploy_Leo_app && cd demo_deploy_Leo_app
next, , be aware to put your wallet address in below
WALLETADDRESS="put-your-wallet-address-here"
next, be aware to put your wallet address in below
APPNAME=helloworld_"${WALLETADDRESS:4:6}"
next, here we create a new app
leo new "${APPNAME}"
next
PATHTOAPP=$(realpath -q $APPNAME)
next
cd $PATHTOAPP && cd ..
next, be aware to put your wallet private key in below
PRIVATEKEY="put-your-wallet-private-key-here"
Now go to aleo.tools and use the value & view key of your faucet transation that you received.
RECORD="put-the-code-that-you-get-it-here"
finally run below command
snarkos developer deploy "${APPNAME}.aleo" --private-key "${PRIVATEKEY}" --query "https://vm.aleo.org/api" --path "./${APPNAME}/build/" --broadcast "https://vm.aleo.org/api/testnet3/transaction/broadcast" --fee 600000 --record "${RECORD}"