Creating a DeFi project
In this section, we will go through the steps of creating a DeFi project. First, we will install Node.js, and then use the create-react-app
package to create the project. After that, we will install and set up Hardhat for Ethereum smart contract development.
Installing Node.js
Node.js (https://nodejs.org/) is one of the most popular tools to create JavaScript projects. It also offers package management and runtime environment provisioning. To install Node.js, we can open the https://nodejs.org/ link in our preferred browser. Figure 2.1 shows the landing page of Node.js; you can click the green button on the left side to download the latest long-term support (LTS) version.
Figure 2.1 – Node.js official landing page
We recommend you use the latest LTS for the DeFi project in order to get the most stable features of Node.js. After you’ve downloaded the installation package file (the website will automatically determine...