Cryptomon
This was a coursework assignment for CO467 Principles of Distributed Ledgers.
The report pdf, written in latex
Requirements
- Node.js v8+ LTS and npm (comes with Node)
- Truffle (
npm install -g truffle
) - Ganache
- Metamask or similar
Compile contract
truffle compile
The compiled contract will be at build/Cryptomon.json
Deploy
First start Ganache. Make sure the network is running on port 7545.
truffle migrate
Note: I edited the migration script to automatically calls Cryptomon.addInitialPokemon()
(see migrate/2_deploy_contracts.js
)
Run tests
truffle test
Start the server
npm run dev