Decentralized react web app, Solidity smart contracts on Ethereum Blockchain for famous gambling functionality of Deathrolling.
Game for two players where each person takes it in turns rolling random numbers. Each next rolls maximum number is previously rolled number. First to get to 1. loses game and pays out.
Project can be start by simply pulling an starting docker image or from source
- Pull docker image from registry
docker pull ghcr.io/mrlaki5/deathroll-dapp:latest
# Note: there is option to build image localy (first project must be build from sources):
# cd docker & docker build -t deathroll ghcr.io/mrlaki5/deathroll-dapp:latest -f dockerfile .
- Start container with server inside
docker run -p 80:80 --name deathroll ghcr.io/mrlaki5/deathroll-dapp:latest
-
Compile smart-contract from smart-contracts/Deathroll.sol with Solidity compiler and place json output that contains abi and binary under web-client/src/contracts/Deathroll.json
-
Inside web-client install dependencies. Note: this needs to be done only once
npm install
- Start web-client react app.
npm start