|
| 1 | +import Tabs from '@theme/Tabs'; |
| 2 | +import TabItem from '@theme/TabItem'; |
| 3 | + |
| 4 | +<Tabs> |
| 5 | +<TabItem value="local" label="Local" default> |
| 6 | + |
| 7 | +- Basic knowledge of terminal commands |
| 8 | +- **IDE** - Install [VS Code](https://code.visualstudio.com/) |
| 9 | + |
| 10 | +**Note for Apple Silicon users:** |
| 11 | + |
| 12 | +Ensure that Rosetta is installed, if it is not, use the following command: |
| 13 | + |
| 14 | +```bash title="Terminal" |
| 15 | +softwareupdate --install-rosetta |
| 16 | +``` |
| 17 | + |
| 18 | +**Install Required Packages** |
| 19 | + |
| 20 | +- [Install dotnet 8.0.x SDK](https://dotnet.microsoft.com/en-us/download/dotnet/8.0) |
| 21 | +- Install aelf contract templates |
| 22 | + |
| 23 | +<Tabs> |
| 24 | +<TabItem value="Linux and macOs" label="Linux and macOs" default> |
| 25 | +```bash title="Terminal" |
| 26 | +dotnet new --install AElf.ContractTemplates |
| 27 | +``` |
| 28 | +</TabItem> |
| 29 | + |
| 30 | +<TabItem value="Windows" label="Windows"> |
| 31 | +```bash title="Command Prompt" |
| 32 | +dotnet new install AElf.ContractTemplates |
| 33 | +``` |
| 34 | +</TabItem> |
| 35 | +</Tabs> |
| 36 | + |
| 37 | +AELF.ContractTemplates contains various predefined templates for the ease of developing smart contracts on the aelf blockchain. |
| 38 | + |
| 39 | +- Install aelf deploy tool |
| 40 | + |
| 41 | +```bash title="Terminal" |
| 42 | +dotnet tool install --global aelf.deploy |
| 43 | +``` |
| 44 | + |
| 45 | +aelf.deploy is a utility tool for deploying smart contracts on the aelf blockchain. |
| 46 | +Please remember to export PATH after installing aelf.deploy. |
| 47 | + |
| 48 | +:::info |
| 49 | +ℹ️ Note: If you have installed aelf.deploy and your terminal says that there is no such command available, please uninstall and install aelf.deploy. |
| 50 | +::: |
| 51 | + |
| 52 | +**Install Node.js and Yarn** |
| 53 | + |
| 54 | +- [Install Node.js](https://nodejs.org/en) |
| 55 | +- [Install Yarn](https://classic.yarnpkg.com/lang/en/docs/install) |
| 56 | + |
| 57 | +**Install aelf-command** |
| 58 | + |
| 59 | +<Tabs> |
| 60 | +<TabItem value="Linux and macOs" label="Linux and macOs" default> |
| 61 | +```bash title="Terminal" |
| 62 | +sudo npm i -g aelf-command |
| 63 | +``` |
| 64 | +</TabItem> |
| 65 | + |
| 66 | +<TabItem value="Windows" label="Windows"> |
| 67 | +```bash title="Command Prompt" |
| 68 | +npm i -g aelf-command |
| 69 | +``` |
| 70 | +</TabItem> |
| 71 | +</Tabs> |
| 72 | + |
| 73 | +aelf-command is a CLI tool for interacting with the aelf blockchain, enabling tasks like creating wallets and managing transactions. |
| 74 | +Provide required permissions while installing aelf-command globally. |
| 75 | +</TabItem> |
| 76 | + |
| 77 | +<TabItem value="codespaces" label="Codespaces"> |
| 78 | + |
| 79 | +1. Visit [aelf-devcontainer-template](https://github.com/AElfProject/aelf-devcontainer-template). |
| 80 | +2. Click the `Use this template` button. Choose `Create a new repository`. |
| 81 | +3. Enter a suitable repository name. Click `Create repository`. |
| 82 | +4. Within the GitHub interface of your new repository, click on `Code`. |
| 83 | + Select `Codespaces`. |
| 84 | +5. Click on the `+` sign to create a new Codespace. |
| 85 | +6. After some time, your workspace will load with the contents of the repository. |
| 86 | + You can now continue your development using GitHub Codespaces. |
| 87 | + |
| 88 | +</TabItem> |
| 89 | +</Tabs> |
0 commit comments