Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 13 additions & 2 deletions docs/quick-start/developers/_setup.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,11 @@ softwareupdate --install-rosetta
- [Install dotnet 8.0.x SDK](https://dotnet.microsoft.com/en-us/download/dotnet/8.0)
- Install aelf contract templates

<Tabs>
```bash title="Terminal"
dotnet new install AElf.ContractTemplates
```

<!-- <Tabs>
<TabItem value="Linux and macOs" label="Linux and macOs" default>
```bash title="Terminal"
dotnet new --install AElf.ContractTemplates
Expand All @@ -32,7 +36,7 @@ dotnet new --install AElf.ContractTemplates
dotnet new install AElf.ContractTemplates
```
</TabItem>
</Tabs>
</Tabs> -->

AELF.ContractTemplates contains various predefined templates for the ease of developing smart contracts on the aelf blockchain.

Expand Down Expand Up @@ -72,6 +76,13 @@ npm i -g aelf-command

aelf-command is a CLI tool for interacting with the aelf blockchain, enabling tasks like creating wallets and managing transactions.
Provide required permissions while installing aelf-command globally.

**Install Git**

- [Install Git](https://git-scm.com/downloads)

As we will be using a ready made project, we will require git to clone from the project.

</TabItem>

<TabItem value="codespaces" label="Codespaces">
Expand Down
75 changes: 2 additions & 73 deletions docs/quick-start/developers/dao-dapp/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,80 +15,9 @@ practices, and efficient data management in smart contracts.

## Step 1 - Setting up your development environment

import Tabs from '@theme/Tabs';
import TabItem from '@theme/TabItem';
import Setup from "../_setup.md"

<Tabs>
<TabItem value="local" label="Local" default>

- Basic knowledge of terminal commands
- **IDE** - Install [VS Code](https://code.visualstudio.com/)

**Install Required Packages**

- [Install dotnet 6.0 SDK](https://dotnet.microsoft.com/en-us/download/dotnet/6.0)
- Install aelf contract templates

```bash title="Terminal"
dotnet new --install AElf.ContractTemplates
```

AELF.ContractTemplates contains various predefined templates for the ease of developing smart contracts on the aelf blockchain.

- Install aelf deploy tool

```bash title="Terminal"
dotnet tool install --global aelf.deploy
```

aelf.deploy is a utility tool for deploying smart contracts on the aelf blockchain.
Please remember to export PATH after installing aelf.deploy.

**Install Node.js and Yarn**

- [Install Node.js](https://nodejs.org/en)
- [Install Yarn](https://classic.yarnpkg.com/lang/en/docs/install)

**Install aelf-command**

<Tabs>
<TabItem value="Linux and macOs" label="Linux and macOs" default>
```bash title="Terminal"
sudo npm i -g aelf-command
```
</TabItem>

<TabItem value="Windows" label="Windows">
```bash title="Command Prompt"
npm i -g aelf-command
```
</TabItem>
</Tabs>

aelf-command is a CLI tool for interacting with the aelf blockchain, enabling tasks like creating wallets and managing transactions.
Provide required permissions while installing aelf-command globally.

**Install Git**

- [Install Git](https://git-scm.com/downloads)

As we will be using a ready made project, we will require git to clone from the project.

</TabItem>

<TabItem value="codespaces" label="Codespaces">

1. Visit [aelf-devcontainer-template](https://github.com/AElfProject/aelf-devcontainer-template).
2. Click the `Use this template` button. Choose `Create a new repository`.
3. Enter a suitable repository name. Click `Create repository`.
4. Within the GitHub interface of your new repository, click on `Code`.
Select `Codespaces`.
5. Click on the `+` sign to create a new Codespace.
6. After some time, your workspace will load with the contents of the repository.
You can now continue your development using GitHub Codespaces.

</TabItem>
</Tabs>
<Setup />

## Step 2 - Develop Smart Contract

Expand Down
Loading