Drizzle tutorial with React Hooks¶
I created a complete React Hooks version of this Drizzle tutorial.
You will need to install Node.js and Truffle, as stated in the tutorial - see "Setting up the development environment".
To get this box¶
Create a new directory.
In the new directory, run
truffle unbox atkinsonholly/Drizzle-tutorial-with-React-Hooks. This should pull the box contents to the new local directory.
In the client directory:
In the main project directory:
Then, in the Truffle developer console:
To test your smart contract(s), in truffle's developer console:
Now that you have successfully launched your Solidity contract onto your local blockchain, go into the client directory:
Run the project by entering the following:
To see your project in the browser, go to http://localhost:3000/
You can test your DApp by entering the following:
You may need to install Xcode to use this box on macOS, see node-gyp on Github. The following command may be useful if you encounter issues with this: