This article guides you through setting up the environment and running a simple application written in Leo, the programming language of the Aleo blockchain.
Requirements:
- Ubuntu 22
Step 1 – Setting up the environment
Update
apt update
apt upgrade
apt-get install pkg-config libssl-dev
Install Rust
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh
Load Rust
source "$HOME/.cargo/env"
Install Leo
curl -L https://raw.githubusercontent.com/AleoHQ/workshop/master/install.sh | sh
Step 2 – Clone Leo sample App
git clone https://github.com/ziedmis/Aleo-Basic-Bank-Sample.git
cd Aleo-Basic-Bank-Sample
chmod +x run.sh
edit .env file to use your private key
Step 3 – Run your program
./run.sh
Here, you can delve deeper into the Leo language through the project’s official documentation. You can also upload this project to your GitHub page and claim the ALeo Contributor Badge as recognition of your participation alongside Aleo in this repo: https://github.com/AleoHQ/leo/issues