This repo contains the smart contract for the POINT Token System. The POINT Token System is a multi-tenant, decentralized loyalty and rewards system that runs on the Ethereum Blockchain.
To learn more about the POINT Token System, go to http://www.pointtoken.io. The website has a white paper which thoroughly outlines how the system works.
If all you want to do is read the contract, there is no installation required; just go to contracts\PointToken.sol.
If you want to run the contract locally or run the tests, you need to install Truffle:
npm install -g truffle
You also need to install testrpc for running the tests:
npm install -g ethereumjs-testrpc
Lastly, you need to do an npm install on the repo itself:
npm install
The contract itself relies on the inheritance feature of Solidity to pull in several other Solidity files, all from the Open Zeppelin project. You can read these files by drilling into the node_modules\zeppelin-solidity directory. For understanding the logic of the POINT Token code itself, see the POINT Token white paper.
To run the unit tests on the contract, run
truffle test
Make sure that testrpc is running before you run the tests.