This is a Visual Studio Code remote dev container template for doing blockchain development with node.js and Hardhat
On the very first run the container needs to be built - This can take a while. The next run will be much faster.
Instuctions for getting started with dev containers within Visual Studio Code can be found here
- node.js (14.x) + npm
Note: You install Hardhat as a dev dependency when you create your project, it's not a globally installed tool like Truffle
npm init --yes
npm install --save-dev hardhat
npx hardhat
Follow the prompts, then
npm install --save-dev @nomiclabs/hardhat-ethers ethers @nomiclabs/hardhat-waffle ethereum-waffle chai
Add the following line to the top of the hardhat.config.js
require("@nomiclabs/hardhat-waffle");