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