kozyilmaz / ethereum-dapps

Collection of DApps and Smart Contracts for Ethereum (ERC20 token, CRC32)

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Collection of DApps and Smart Contracts for Ethereum

Screenshot

Contents

This repository contains sample DApps and smart contracts developed for Ethereum platform. All smart contracts are deployed on Ethereum's Rinkeby testnet. Metamask browser extension is used for testing and development
Some of the tests may require Metamask/Mist due to account accesses, however pages like crc32.html may be tested just using Infura.
Please check out the *.js files in app directory. By setting infuraAPIKey variable you may execute most of the tests without needing Metamask/Mist

Setting Up

Please refer to the following step-by-step guides to setup and start development with Truffle

Development and Testing

Basic commands for development and testing are as follows

# everytime you had a fresh checkout, get dependencies via
$ npm install

# compile smart contracts
$ truffle compile

# test smart contracts
$ truffle test

# create an .env file to store wallet seed and infura api keys in project root dir
$ cat .env
MNEMONIC=<wallet seed phrases (may be Metamask)>
INFURA_API_KEY=<infura api key>

# deploy smart contracts on various networks
$ truffle migrate --network localhost
$ truffle migrate --network mainnet
$ truffle migrate --network ropsten
$ truffle migrate --network rinkeby

# serve static content with lite-server at localhost:3000
$ npm run dev

About

Collection of DApps and Smart Contracts for Ethereum (ERC20 token, CRC32)

License:MIT License


Languages

Language:JavaScript 67.1%Language:C 17.0%Language:HTML 15.9%