Preface#
Before starting the article, let's clarify several reading points. The article will repeatedly mention words such as "necessary conditions," "optional content," "do not," "attention⚠️," etc. Their meanings are as follows.
-
"Necessary conditions": Content that is absolutely required and without which the tutorial cannot proceed.
-
"Optional content": Supplementary content that does not affect the tutorial.
-
"Do not": Content that is mandatory and should not be done.
-
"Attention⚠️": Content that provides tips and guidance on what should and should not be done.
Target Audience#
This article is suitable for the following readers. "Necessary conditions": Proficiency in understanding and reading English.
-
Professionals in computer-related fields
-
Developers with a foundation in Web2 transitioning to Web3
-
Developers who have experience in developing simple projects but lack experience in developing large-scale projects
-
University students who possess self-discipline, self-learning ability, and outstanding comprehensive skills
-
Those who are here for fun
This article is not suitable for the following readers.
-
Users with no programming background
-
Top experts
Development Environment#
This article will be developed using "MacOS" throughout. If you are using a "Windows" system, two solutions are recommended.
-
Switch to a "Mac"
-
Search for alternative solutions for commands that cannot be executed on "Windows," such as installing the "Node" environment. On Unix-like systems, you can use "nvm," but on "Windows," you can only download the installation package.
Necessary Software#
- VPN tool
Software Environment Installation#
In general, developing a Dapp (EVM) requires some basic software. Below are the ways to install the necessary basic software on MacOS. Please note that you should have a VPN tool enabled throughout the process. If you don't have a VPN tool, please search for alternative sources.
The "necessary software" includes:
-
Git
-
VSCode
-
Nodejs (v16+)
If you know how to manually install these, you can skip the following tutorial.
However, for convenience, we will first install an "optional software," Brew.
Installing Brew#
Enter the command in the terminal
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
During the installation process, you will need to enter your system password once and press Enter afterwards.
If you see the above prompt, execute the command below.
Installing Git, Nvm#
Enter the command
brew install git
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.1/install.sh | bash
Installing Nodejs#
Enter the command
nvm install --lts
Installing VSCode#
Enter the command
brew install --cask visual-studio-code
Verification#
By now, we have installed the necessary software: node, vscode, git. However, we can verify this by entering the following commands.
git -v
node -v
code -v
The results should be as follows.
Optional Installation#
However, for a better development experience, we also need to install the "yarn" package manager.
Enter the command
npm install yarn -g
######
yarn -v
The results should include the following content.
Summary#
So far, we have completed the initial environment installation. This chapter does not have much difficulty or significance, but it serves as a preliminary test of whether you can learn this course and can be considered as a threshold. If you encounter significant problems in this chapter, it is recommended to take a moment to carefully study before proceeding with the learning.