# Installation

#### Automatically

The command ensures all manual steps

```bash
$ 0xweb init --hardhat
```

#### Manually

* Install [dequanto 📦](https://docs.0xweb.org/package-manager/dequanto-dependency) library
* Install [hardhat](https://www.npmjs.com/package/hardhat)

  ```
  npm i hardhat
  ```
* Install [@0xweb/hardhat](https://www.npmjs.com/package/@0xweb/hardhat) plugin

  ```
  npm i @0xweb/hardhat
  ```
* `hardhat.config.js` should look like this:

  ```
  require("@0xweb/hardhat");

  module.exports = {
      solidity: {
          version: "0.8.2",
          settings: {
              optimizer: {
                  enabled: true,
                  runs: 200
              }
          }
      },
      networks: {
          hardhat: {
              chainId: 1337
          },
          localhost: {
              chainId: 1337
          },
          mainnet: {
              url: ``,
              accounts: [``]
          }
      },
      etherscan: {
          // One at https://etherscan.io/
          apiKey: ""
      }
  };


  ```
