Skip to content

Commit

Permalink
fix: updated dotnet install command and version
Browse files Browse the repository at this point in the history
  • Loading branch information
RutvikGhaskataEalf committed Jan 18, 2025
1 parent c7392fe commit 638e18c
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 75 deletions.
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

0 comments on commit 638e18c

Please sign in to comment.