| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Name | Name | Last commit date | ||
|---|---|---|---|---|
A simple ethereum blockchain application using of solidity, smart contracts, and the truffle framework for introductory blockchain development.
Node environment:
brew install node
Solc Compiler: Ethereum smart contracts are compiled with this.
npm install -g solc
Go Ethereum (geth): a multipurpose command line tool that runs a full Ethereum node implemented in Go.
Brew Install
brew tap ethereum/ethereum brew install ethereum
Truffle framework: Truffle is development environment and test framework for ethereum. You can install truffle using npm.
npm install -g truffle
Ganache: creates a virtual Ethereum blockchain, and it generates some fake accounts that we will use during development
ganache-cli
npm install -g ganache-cli
Ganache client
Install dependencies
npm install
Create a new directory for your project
Install the above packages
Run ganache
ganache-cli
or start your Ganache application
Generate a new truffle project:
truffle init truffle compile truffle migrate
Create the Counter solidity smart contract
create a Counter.sol file modify 1_initial_migration.js file to include Counter contract deploy.
Create tests for your Counter contract
make a ./test/test.js file add Counter contract functionality tests to test.js
Run tests
truffle test
A great guide to all things blockchain development!
A tutorial explaining the simple counter contract we've developed here today!
A tutorial building on the counter contract into a Web3 application!
| Back | FazBrowse Home | New Git URL |