Ethereum implements simple data chain storage

Tools: Truffle; Ganache; MetaMask

Environment: Windows10

Create a new folder, name it storage, and execute the following command under the folder: (equivalent to downloading a webpack template)

truffle unbox webpack

You will then see that the following content has been downloaded:

Different from simply executing the Truffle initialization operation, there is an additional APP folder here, which mainly contains the front-end code (in src):


You can first take a look at what the template looks like without changing anything:

Then I found that an error was reported hahahahahahahahaha: (change the content in truffle-config slightly)

 Connect Ganache and Meta Mask, enter the App folder after migrate, execute:

npm run dev

Guess you like

Origin blog.csdn.net/qq_40880250/article/details/124885349