# Testing Environment Setup

## Required Tools & Extension

1. Install VSCode - <https://code.visualstudio.com/>
2. Install the below extension&#x20;

<figure><img src="https://851323342-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FolGZmSV9EYkU0MXXM4LC%2Fuploads%2FFKCmm2wNkGaEJzxNwKXQ%2FScreenshot%202024-05-16%20at%207.53.29%E2%80%AFPM.png?alt=media&#x26;token=f7c5bac4-34cf-43aa-adc0-eecff4cfe2a9" alt=""><figcaption><p>Solidity Visual Developer</p></figcaption></figure>

## Programming Language & Modules

1. Install Node.js - <https://nodejs.org/en/download/package-manager>
2. Install hardhat - <https://hardhat.org/hardhat-runner/docs/getting-started>

```
npm install --save-dev hardhat
```

> **Command:**
>
> 1. For creating project
>
> ```
> npx hardhat
> ```
>
> 2. For compiling project
>
> ```
> npx hardhat compile
> ```
>
> 3. For running the script file
>
> ```
> npx hardhat run [ADD_HERE_SCRIPT_FILE_PATH]
> ```
>
> 4. For running the test script file
>
> ```
> npx hardhat test [ADD_HERE_TEST_SCRIPT_FILE_PATH]
> ```
>
> &#x20;        *Or*
>
> ```
> npx hardhat test
> ```
>
> 5. For creating blockchain localy
>
> ```
> npx hardhat node
> ```

## Metamask

Install metamask extension and setup the account - <https://metamask.io/download/>
