Let’s begin, my path “Leo Developer Toolkit through Git Bash”
To paste command press Shift+Win+Insert (Windows)
- Install Git Bash (Follow instructions for Windows)
- Install the components you need for building C and C++ apps
or run this
#!/bin/bash
sudo apt update && sudo apt upgrade -y
sudo apt-get install git-all -y
sudo apt-get install curl -y
sudo su
reboot
sudo apt-get update
sudo apt-get install build-essential -y
sudo apt-get install libc6-dev -y
sudo apt-get update
sudo apt-get install pkg-config libssl-dev -y
sudo apt-get update
1.1 Install Rust
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh
Press 1 and Enter
Press Enter again
1.2 Download the source code
git clone https://github.com/AleoHQ/leo
cd leo
1.3 Install Leo
cargo install --path .
After entering this command, the Leo installation process will begin
Wait for it to finish, the process takes 5–10 minutes depending on the power of your computer
1.4 Try writing leo help
command
If everything looks like this, congratulations, leo is installed!
2.1 Create a new wallet
leo account new
or you can import your current wallet
leo account import YOUR_Private_Key
2.2 Continue in your exsiting terminal window and type leo example
2.3 We'll try TicTacToe
leo example tictactoe
2.4 You can run and see the example in action
cd tictactoe
and run
leo run new
3.1 Initializing a Git repository
cd tictactoe
git init -b main
git add .
3.2 Before committing, we need to add your email write the command in the terminal
git config --global user.email [email protected]
*where [email protected] is your email adress
git config --global user.name your_username
**where your_username is your username)
3.3 Now you can commit
git commit -m "My First commit"
3.4 Adding a local repository to GitHub using Git Create a new repository on Github
Type your repository name (you can call it whatever you want) and press Create repository (to avoid errors, do not initialize the new repository with README, license, or gitignore files)
3.5 Copy the link to your repository
3.6 Continue in your existing terminal window and type
git branch -m main
git remote add origin YOUR_REPOSITORY_LINK
git remote -v
git push -u origin main
An example of what I came up with when I created this guide
5.1 Go to the Leo repo Click “New Issue” in the top right corner
Click “Get started” in the Leo Contributor Badge row
Title your issue: “Add <your_github_username> to contributors”
Enter the following as your issue description:
Hi Aleo team! I’m claiming my contributor badge for completing the New Developer Toolkit tutorial.
Tutorial Repo: <GITHUB_REPO_URL>
Requested badge: <BADGE_TYPE>
After that you can submit your issue Once your issue is approved, Aleo team will add you to the Contributors section of the Leo README.md file
Congratulations on becoming a Leo contributor! 🎉
Check out the following resources:
- Aleo developer docs
- See Aleo’s SDK in action at aleo.tools
- Play around with Leo in the browser with Leo Playground
- Learn Leo syntax, functions, and best practices with the Leo’s language guide
- Deploy and Execute Leo applications on-chain with our Deploy and Execute Demo
- See Aleo’s testnet live and other Leo developer’s applications via an explorer such as Haruka’s Program Registry or aleo.network