Code sample for a simple contact agenda in the Ethereum Blockchain. A prototype coded for educational purpose, to learn and improve solidity and ethereum development skills, should not be used in production.
These instructions will get you a copy of the project up and running on your local machine for development and testing purposes.
- NodeJs
- Truffle Framework
- TestRPC
- A TextEditor(I use Visual Studio Code)
- Install Node Js
- Install Truffle Framework and TestRPC
$ npm install -g npm
$ npm install -g -production windows-build-tools
$ npm install -g ethereumjs-testrpc
$ npm install -g truffle
After install the required packages, you'll need to open cmd (or similar) in the project folder.
- Execute the following command
testrpc
- Open a new cmd
truffle migrate
truffle test
I'll update the project with a UI, then you'll be able to use a TestRPC Account, connect with Metamask and test the smart contract functions:
- Insert new Contact
- Count the Contacts
- Delete a Contact
- Search a Contact with his Number