(My first smart-contract project.) Headshave allows users to pledge money towards a particular outcome. If the outcome occurs, they donate the money. Not unlike kickstarter.
- All dependencies listed in package.json
- truffle
- ganache
Run a fake node for testing purposes with ganache-cli
or better yet, use Ganache.app
where you can control and see different addresses.
Run operations for solidity with truffle: truffle compile
, truffle migrate
, truffle console
, etc.
Run tests (with a watcher) with
npm run watch
Run the javascript with
node main.js