Skip to content

Commit

Permalink
Merge pull request #4 from yash251/elonmusk
Browse files Browse the repository at this point in the history
Update 2. 🧱 Setting up the environment.md
  • Loading branch information
yash251 authored Sep 27, 2022
2 parents b05a897 + 227b104 commit 47bd014
Showing 1 changed file with 12 additions and 13 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ Now that we've discussed all that, let’s get straight to development. Most of

### First, install Node.js

Node.js is JavaScript runtime built on Chrome's V8 JavaScript engine. I will leave this [link here](https://hardhat.org/tutorial/setting-up-the-environment.html) to help you install Node.js.
Node.js is JavaScript runtime built on Chrome's V8 JavaScript engine. I will leave this link [here](https://hardhat.org/tutorial/setting-up-the-environment.html) to help you install Node.js.

Blockchain is like a public database and our smart contracts live on that database. This database is publicly available and accessible. Based on our contract's configuration, anyone or only specific people can play around with our contract. Every time we publish a contract on blockchain, it gets an address - a digital footprint 👣 for us to track it. We'll build everything in the 🔷 Ethereum Blockchain and also use Solidity and other libraries for this project.

Expand All @@ -19,7 +19,7 @@ For this purpose, we will use [HardHat](https://hardhat.org/). Hardhat gives yo
- First make a project directory where you will work and we will install all the dependencies and hardhat there.
- Now open your terminal and run the following commands one by one. Just copy and paste one by one.

```
```bash
mkdir elonNFT
cd elonNFT
npm init --yes
Expand All @@ -32,7 +32,7 @@ If you have followed the instructions properly, and everything went according to

- Now write the following command on your terminal:

```
```bash
npx hardhat
```

Expand All @@ -47,28 +47,27 @@ You will see something like this 👇
888 888 .d888888 888 888 888 888 888 .d888888 888
888 888 888 888 888 Y88b 888 888 888 888 888 Y88b.
888 888 "Y888888 888 "Y88888 888 888 "Y888888 "Y888
👷 Welcome to Hardhat v2.8.3 👷‍
👷 Welcome to Hardhat v2.11.2 👷‍
? What do you want to do? …
❯ Create a basic sample project
Create an advanced sample project
Create an advanced sample project that uses TypeScript
❯ Create a JavaScript project
Create a TypeScript project
Create an empty hardhat.config.js
Quit
```

We will follow the guide and create a basic sample project. Something like HelloWorld! Just follow through the questions and answer them yes.
We will follow the guide and create a JavaScript project. Something like HelloWorld! Just follow through the questions and answer them yes.

You will also install some more dependencies; hardhat ether and hardhat waffle in the project. The installation wizard will install those for you. If you haven’t received a prompt for that, run the following command:

```
npm install --save-dev @nomiclabs/hardhat-ethers ethers @nomiclabs/hardhat-waffle ethereum-waffle chai
```bash
npm install --save-dev @nomicfoundation/hardhat-toolbox
```

We will also install a smart contracts library called OpenZeppelin. It will make it easy for us to develop, run and ship smart contracts.

```
```bash
npm install @openzeppelin/contracts
```

Expand Down

0 comments on commit 47bd014

Please sign in to comment.