This is a Super CatHouse - platform based on Ethereum smart contacts, where you can ask strangers to donate money for cat food.
This smart contract solution was created by using:
- React.js
- Solidity
- Web3.js
- First, you will need to install nodejs to your device (you can check the version by running
$ node -v
). Then you will have to install Truffle Framework:
$ npm install -g truffle@5.0.5
. - Make sure that Ganache server is running.
- Install all node dependencies by running:
$ npm install
inside the project's man dir. - Compile Solidity part of the project:
$ truffle compile
. - Migrate contract:
$ truffle migrate
. - Now deploy the contract to the network:
$ truffle console
cathouse = await Cathouse.deployed()
(inside the console)
- To make sure that everything is working, run tests:
$ truffle test
- Finally, run migrations again:
$ truffle migrate --reset
- Start the client server:
$ npm run start
You will also need to configure MetaMask and connect your account to the network.