Affogato's Core Smart Contract functions as a Data and Reputation Layer, used for building a Coffee Economy on Ethereum
Clone the project on your local machine for development and testing purposes. See deployment for notes on how to deploy the project on a live system.
You need truffle, ganache in order to run the project.
npm install -g truffle
npm install -g ganache-cli
git clone [email protected]:AffogatoNetwork/Core.git
cd core
npm install
Run ganache application or the cli in order to start testing
ganache-cli
Compile the project
truffle compile
Affogato uses Chai as an assertion library
truffle test
With ganache runing just migrate the project with the network 1234 and you will be ready.
truffle migrate --network development
Create a .env file with the following values:
MNENOMIC="MNEMONIC KEY OF ACCOUNT WITH RINKEBY ETH"
RINKEBY_API_URL="Rinkeby api URL"
Run migration with the rinkeby network
truffle migrate --network rinkeby