This is a game DApp created with a Smart Contract Ethereum and UI client with React.
The interaction of the project is represented in the following way:
These instructions will get you a copy of the project up and running on your local machine.
- node.js
- npm
- truffle
-
Compile, migrate, and Deploy Contract and App React
make start
this option only works with Unix environments with
make
installed.
-
Compile and migrate the contract
truffle migrate cp ./build_contract/contracts/Gaming.json ./client-app/src/contracts-api/artifacts/Gaming.json
this will create a build folder and copy to client react.
-
Installing Dependencies in client Application
cd ./client-app && npm install npm start
- Active truffle Develop mode.
on truffle prompt:
truffle develop
truffle(develop)> test
For that it's necessary to have Ganash software installed.
-
Migrate the contract to the network.
truffle migrate
check the configuration in
truffle-config.js
-
Run the tests.
truffle test
or intereacting with the console
truffle console truffle(development)> test
-
Smart Contract
-
Client Application
- Ethereum and Solidity the complete developers guide, Udemy Course
- Hands-On Blockchain Development (Book By Will, 2019)