> For the complete documentation index, see [llms.txt](https://chainide.gitbook.io/chainide-english-1/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://chainide.gitbook.io/chainide-english-1/ethereum-ide-1/10.-aptos-ide/2.-how-to-use-aptos-ide.md).

# 2. How to use Aptos IDE

{% embed url="<https://www.youtube.com/watch?v=dE5RSOUXVK0>" %}

## 1. Write a contract

Upon entering the project, the README.md file included in the folder will be automatically previewed.

<figure><img src="/files/TWyZNVMfgMZ91bGNRDmw" alt=""><figcaption></figcaption></figure>

In the Explorer panel, you can create new files (or folders), refresh the directory, and download files. You can also directly click on the files that come with the template.

<figure><img src="/files/tvragwr9fvgQ2q5aNWXt" alt=""><figcaption></figcaption></figure>

Click on Move.toml, and replace \_ with your Aptos wallet address.

<figure><img src="/files/EWKM4CRBSyFH4kBdAfwc" alt=""><figcaption></figcaption></figure>

## 2. Test a contract

Once your contract code is written, click on the "Compiler" button in the right-side menu to open the compilation module. After selecting the Module Package Path, click on "Test."

<figure><img src="/files/2uHe8GoGriwPCVq3vhf2" alt=""><figcaption></figcaption></figure>

After a successful test, the test results will be displayed in the console.

<figure><img src="/files/KVi0H1187FIMgdhwOa0F" alt=""><figcaption></figcaption></figure>

## 3. Compile a contract

On the right-hand menu bar, under the Compiler section, click on "Compile" to start compiling the contract.

<figure><img src="/files/w1DAbtrJOPyks0GHquYG" alt=""><figcaption></figcaption></figure>

After successful compilation, the results will be displayed on the console.

<figure><img src="/files/stQTOXj9F0bN2ApVLJ31" alt=""><figcaption></figcaption></figure>

## 4. Connect to Aptos

Before deploying a contract, you need to click on "Connect Wallet" on the upper right corner. Choose from one of the available wallet to connect it to ChainIDE.

<figure><img src="/files/idxBVr3IaBfV9xA4fbIA" alt=""><figcaption></figcaption></figure>

## 5. Deploy a contract

Click the "Deploy & Interaction" button on the right-hand side, which will bring up the deployment and interaction pages. Select the compiled contract and click "Publish" to initiate the deployment (then confirm in Wallet). After successful contract deployment, the console will display the contract deployment result and relevant information.

<figure><img src="/files/VSI04EDymPFhB6H6ar44" alt=""><figcaption></figcaption></figure>

In addition, you can click "Import Deployed Contract" to import a contract that has already been deployed for contract interactions.

<figure><img src="/files/W5UsgYHsV2tWIVJ85Nyd" alt=""><figcaption></figcaption></figure>

## 6. Contract interaction

After successful contract deployment, you can interact with the contract. Click on the deployed contract, select the corresponding interface, and proceed with the interaction.

<figure><img src="/files/pTQ48vPQXg7DoeQ6acFd" alt=""><figcaption></figcaption></figure>

<figure><img src="/files/r7CeFaxYm77kNTQPj4Ym" alt=""><figcaption></figcaption></figure>

## 7. Modules & Resources Query

Click on "Modules & Resources" and enter the corresponding fields to query the relevant information.

<figure><img src="/files/H17FH3gXWB2Nq4vBtrbO" alt=""><figcaption></figcaption></figure>

## 8. Aptos Sandbox

If you prefer using the command line for development, you can open the Aptos Sandbox, which comes pre-loaded with  [Aptos Cli](https://aptos.dev/tools/aptos-cli/use-cli/use-aptos-cli), [Git](https://git-scm.com/) and [Node.js V16](https://nodejs.org/en).

<figure><img src="/files/0mREm1HOn4SPbzt5TfqY" alt=""><figcaption></figcaption></figure>

If you've started a process on a port in the Sandbox and wish to access that port, please refer to [ChainIDE - Port Forwarding](/chainide-english-1/port-forwarding.md).
