This is a fork of drizzle-box
This project showcases how to create a decentralized application on the Ethereum blockchain, with smart contracts in Solidity and a frontend with React, with the Drizzle library.
- Ethereum: blockchain
- Truffle: blockchain development framework
- Solidity: programming language for smart contract
- Web3: JavaScript library for interaction with the blockchain
- Ganache: development blockchain
- MetaMask: crypto wallet
- React: frontend framework
- Drizzle: JavaScript library for store management in React
Install node modules requirements:
npm install -g truffle
npm install -g ganache-cli
npm install -g create-react-app
Then install the dependencies:
npm install
cd app
npm install
Start the development blockchain on a separate terminal:
ganache-cli
Compile: truffle compile
Tests: truffle test
Deploy: truffle migrate
Open a terminal in the app
folder.
Run the application: npm run start
. It serves at http://localhost:3000.
Tests: npm run test
Build: npm run build