Here is the simple Smart Contract for basic requirements.
Step 1: git clone this repo:
Step 2: cd to the cloned repo:
Step 3: install Node JS at least version 8.0.0
Step 4: npm install --global --production windows-build-tools
- cd to the repo
- Deploy to Rinkeby Test Network
- node deploy.js
- Run test with Mocha
- npm run test
- Edit the provider in deploy.js with your mnemonic account.
- Sign up to https://www.infura.io and use your own API key.
- Done!