Rock Paper Scissors
Requirements
- Node
- Ganache & Metamask
- Truffle
Building and the frontend
- Open Ganache
- Point Metamask to your local network
http://localhost:8545
- Import an account generated by Ganache into Metamask
- Clone project at https://github.com/adamsoffer/rock-paper-scissors
- Inside the project root run
truffle compile
, then runtruffle migrate
to deploy the contracts to the local network. - Run
npm install
to install the dependencies - Run
npm run build
and thennpm start
to build the app and serve it on http://localhost:3000
Testing
- run
npm run test
Common Errors
- Error: Can't resolve '../build/contracts/RockPaperScissors.json'
This means you haven't compiled or migrated your contracts yet. Run truffle compile
and truffle migrate
first.