/DeveloperToolKitGitBash

my path “Leo Developer Toolkit through Git Bash”

DeveloperToolKitGitBash

Let’s begin, my path “Leo Developer Toolkit through Git Bash”

To paste command press Shift+Win+Insert (Windows)

What will we need (Preparation) :

  1. Install Git Bash (Follow instructions for Windows)
  2. Install the components you need for building C and C++ apps

What do we do:

1. Download and install Leo

1.1 Install Rust

curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh

1 and enter

Press 1 and Enter

enter

Press Enter again

1.2 Download the source code

git clone https://github.com/AleoHQ/leo

clone

cd leo

cd leo

1.3 Install Leo

cargo install --path .

After entering this command, the Leo installation process will begin

install

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

leo help

If everything looks like this, congratulations, leo is installed!

2. Working with Leo

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

leo example

2.3 We'll try TicTacToe

leo example tictactoe

example tictactoe

2.4 You can run and see the example in action

cd tictactoe

and run

leo run new

leo run new

3. Push your Leo app to GitHub

3.1 Initializing a Git repository

cd tictactoe
git init -b main
git add .

git init add .

3.2 Before committing, we need to add your email write the command in the terminal

git config --global user.email mail@.com

*where mail@.com 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"

First Commit

3.4 Adding a local repository to GitHub using Git Create a new repository on Github

new repo

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

Copy the link

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

After push

4. Congratulations, you can view your repository via your link or in your GitHub profile

An example of what I came up with when I created this guide

5. Claim your badge

5.1 Go to the Leo repo Click “New Issue” in the top right corner

New issue

Click “Get started” in the Leo Contributor Badge row Leo Contributor Badge Get Started

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>

Example

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! 🎉

Continue your Leo journey

Check out the following resources: