... | ... | @@ -48,7 +48,9 @@ In addition, it can be helpful to download [MongoDB Compass](https://www.mongodb |
|
|
|
|
|
After successfully downloading MongoDB, you can proceed to install the client module/driver for your project. Ensure that you're in the **nextjs-blog** directory, and run the following command:
|
|
|
|
|
|

|
|
|
```sh
|
|
|
npm install mongodb
|
|
|
```
|
|
|
|
|
|
You can verify that the dependency has been added correctly by checking the **package.json** file.
|
|
|
|
... | ... | @@ -58,7 +60,9 @@ You can verify that the dependency has been added correctly by checking the **pa |
|
|
|
|
|
To simplify object access in MongoDB for our project, we utilize [Mongoose](https://mongoosejs.com). To add it to your project, ensure that you're in the **nextjs-blog** directory and run the following command:
|
|
|
|
|
|

|
|
|
```sh
|
|
|
npm install mongoose
|
|
|
```
|
|
|
|
|
|
This will install the Mongoose package and add it as a dependency to your project. You can check the **package.json** file.
|
|
|
|
... | ... | @@ -70,7 +74,9 @@ To develop and deploy our smart contract we are using [Hardhat](https://hardhat. |
|
|
|
|
|
To add hardhat to your project, ensure that you're in the **nextjs-blog** directory and run the following command:
|
|
|
|
|
|

|
|
|
```sh
|
|
|
npm install --save-dev hardhat
|
|
|
```
|
|
|
|
|
|
You can verify that the dependency has been added correctly by checking the **package.json** file.
|
|
|
|
... | ... | @@ -78,7 +84,9 @@ You can verify that the dependency has been added correctly by checking the **pa |
|
|
|
|
|
Then run the command:
|
|
|
|
|
|

|
|
|
```sh
|
|
|
npx hardhat
|
|
|
```
|
|
|
|
|
|
and choose the option to create an empty **hardhat.config.js** file to configure your Hardhat development environment. Here you can define various settings such as the version of the solidity compiler that Hardhat uses to compile your smart contracts and put in the test networks that are going to be used for contract deployment.
|
|
|
|
... | ... | @@ -96,7 +104,9 @@ To enhance our wallet creation process for this project, we have opted to incorp |
|
|
|
|
|
To get started, run the following command:
|
|
|
|
|
|

|
|
|
```sh
|
|
|
npm install @web3modal/ethereum @web3modal/react wagmi
|
|
|
```
|
|
|
|
|
|
This will install web3modals and wagmi:
|
|
|
|
... | ... | |