└── README.md /README.md: -------------------------------------------------------------------------------- 1 | # DeveloperToolKitGitBash 2 | Let’s begin, my path “Leo Developer Toolkit through Git Bash” 3 | 4 | *To paste command press Shift+Win+Insert (Windows)* 5 | 6 | ## What will we need (Preparation) : 7 | 1. Install [Git Bash (Follow instructions for Windows)](https://git-scm.com/downloads) 8 | 2. Install [the components you need for building C and C++ apps](https://visualstudio.microsoft.com/vs/features/cplusplus/) 9 | 10 | ## What do we do: 11 | 12 | ### 1. Download and install Leo 13 | 1.1 Install Rust 14 | ``` 15 | curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh 16 | ``` 17 | 18 | ![1 and enter](https://github.com/HausenUA/DeveloperToolKitGitBash/assets/107180551/b3e54dd5-90ae-46d9-82ab-b150d97c917d) 19 | 20 | Press **1** and **Enter** 21 | 22 | ![enter](https://github.com/HausenUA/DeveloperToolKitGitBash/assets/107180551/902f9aa5-feaa-4386-9ebe-7bad354eafe6) 23 | 24 | Press Enter again 25 | 26 | 1.2 Download the source code 27 | ``` 28 | git clone https://github.com/AleoHQ/leo 29 | ``` 30 | ![clone](https://github.com/HausenUA/DeveloperToolKitGitBash/assets/107180551/91772ddf-0af6-46e0-91e4-410955df3908) 31 | ``` 32 | cd leo 33 | ``` 34 | ![cd leo](https://github.com/HausenUA/DeveloperToolKitGitBash/assets/107180551/037e96fb-054e-4ba8-bace-b6310408fec7) 35 | 36 | 1.3 Install Leo 37 | 38 | ``` 39 | cargo install --path . 40 | ``` 41 | 42 | After entering this command, the Leo installation process will begin 43 | 44 | ![install](https://github.com/HausenUA/DeveloperToolKitGitBash/assets/107180551/026ac1d2-5a35-43ee-a83a-fe3a827817e1) 45 | 46 | Wait for it to finish, the process takes 5–10 minutes depending on the power of your computer 47 | 48 | 1.4 Try writing `leo help` command 49 | 50 | ![leo help](https://github.com/HausenUA/DeveloperToolKitGitBash/assets/107180551/924b2fca-9f1e-4a98-96b4-ca53b84a6d49) 51 | 52 | If everything looks like this, congratulations, leo is installed! 53 | 54 | ## 2. Working with Leo 55 | 2.1 Create a new wallet 56 | ``` 57 | leo account new 58 | ``` 59 | 60 | or you can import your current wallet 61 | ``` 62 | leo account import YOUR_Private_Key 63 | ``` 64 | 65 | 2.2 Continue in your exsiting terminal window and type `leo example` 66 | 67 | ![leo example](https://github.com/HausenUA/DeveloperToolKitGitBash/assets/107180551/1f667f97-9165-4379-8910-6d55c08a4a0e) 68 | 69 | 2.3 We'll try TicTacToe 70 | ``` 71 | leo example tictactoe 72 | ``` 73 | 74 | ![example tictactoe](https://github.com/HausenUA/DeveloperToolKitGitBash/assets/107180551/249c2d3b-2554-4a80-8c77-bd22d94bc8f0) 75 | 76 | 2.4 You can run and see the example in action 77 | ``` 78 | cd tictactoe 79 | ``` 80 | 81 | and run 82 | ``` 83 | leo run new 84 | ``` 85 | ![leo run new](https://github.com/HausenUA/DeveloperToolKitGitBash/assets/107180551/d66ef945-a6a8-46dd-a90a-f7cf37bcc7f1) 86 | 87 | ## 3. Push your Leo app to GitHub 88 | 3.1 Initializing a Git repository 89 | ``` 90 | cd tictactoe 91 | ``` 92 | ``` 93 | git init -b main 94 | ``` 95 | ``` 96 | git add . 97 | ``` 98 | ![git init add .](https://github.com/HausenUA/DeveloperToolKitGitBash/assets/107180551/9a573e5b-7b6c-46d5-9921-2701ff764428) 99 | 100 | 3.2 Before committing, we need to add your email 101 | write the command in the terminal 102 | ``` 103 | git config --global user.email mail@.com 104 | ``` 105 | **where mail@.com is your email adress* 106 | ``` 107 | git config --global user.name your_username 108 | ``` 109 | **where your_username is your username) 110 | 111 | 3.3 Now you can commit 112 | ``` 113 | git commit -m "My First commit" 114 | ``` 115 | ![First Commit](https://github.com/HausenUA/DeveloperToolKitGitBash/assets/107180551/1204d955-1867-4f13-8537-1764b7e48832) 116 | 117 | 3.4 Adding a local repository to GitHub using Git 118 | Create a new repository on [Github](https://github.com/new) 119 | 120 | ![new repo](https://github.com/HausenUA/DeveloperToolKitGitBash/assets/107180551/d8726192-9ad6-4e84-8162-f7ceeb404c02) 121 | 122 | 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) 123 | 124 | 3.5 Copy the link to your repository 125 | 126 | ![Copy the link](https://github.com/HausenUA/DeveloperToolKitGitBash/assets/107180551/54bc71da-a581-437b-a2e3-ef1f8ecefb7b) 127 | 128 | 3.6 Continue in your existing terminal window and type 129 | ``` 130 | git branch -m main 131 | ``` 132 | ``` 133 | git remote add origin YOUR_REPOSITORY_LINK 134 | ``` 135 | ``` 136 | git remote -v 137 | ``` 138 | ``` 139 | git push -u origin main 140 | ``` 141 | 142 | ![After push](https://github.com/HausenUA/DeveloperToolKitGitBash/assets/107180551/fba93cb3-e414-4dce-98d0-1de1c8a837a2) 143 | 144 | ## 4. Congratulations, you can view your repository via your link or in your GitHub profile 145 | [An example of what I came up with when I created this guide](https://github.com/HausenUA/tictactoe) 146 | 147 | 148 | ## Continue your Leo journey 149 | Check out the following resources: 150 | 151 | - [Aleo developer docs](https://developer.aleo.org/getting_started/) 152 | - See Aleo’s SDK in action at [aleo.tools](https://aleo.tools/) 153 | - Play around with Leo in the browser with [Leo Playground](https://play.leo-lang.org/) 154 | - Learn Leo syntax, functions, and best practices with the [Leo’s language guide](https://developer.aleo.org/leo/language) 155 | - Deploy and Execute Leo applications on-chain with our [Deploy and Execute Demo](https://developer.aleo.org/testnet/getting_started/deploy_execute_demo) 156 | - See Aleo’s testnet live and other Leo developer’s applications via an explorer such as [Haruka’s Program Registry](https://explorer.hamp.app/programs) or [aleo.network](https://www.aleo.network/) 157 | 158 | 159 | --------------------------------------------------------------------------------