Build a simple DApp like CryptoKitties. Don’t care much about the details. Implement what you think is essential. As a minimum:
- Smart contract with the data and the business logic
- Web App for interaction with the smart contract.
- Deploy the smart contract on Kovan network.
- Deploy the web app on IPFS.
- Provide information about the development environment and tests for the smart contract.
This is the repository for both the smart contracts and the web app.
The smart contracts were developed using the Truffle development suite combined with the Ganache-cli Ethereum RPC simulator.
The contract tests are held in the test directory and they may be run via the commands: truffle dev
and then test
once inside the truffle console.
The contact is deployed on the kovan testnet and is visible here on etherscan.
Important: You must have MetaMask; You must have selected Kovan Testnet; You must have some KETH to interact with the contracts.
The web app has been deployed fully functioning on the IPFS here.
Everything in this repo is just to serve as a quick example. The test could and should be many more, the core contract should be bigger and actually useful, the web app should have more functionality and the html/css should be much more developed. This is quite obvious but it still has to be stated. Given 1.5 days for this task - this is the result, an MVP.
It is entirely possible to run locally using ganache-cli (ganache-cli && truffle migrate
) and not using metamask if one so desires.