Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/yeaseen/lottery_app_ethereum

A lottery react app based on ethereum blockchain system
https://github.com/yeaseen/lottery_app_ethereum

blockchain ethereum-contract ethereum-dapp lottery

Last synced: 2 months ago
JSON representation

A lottery react app based on ethereum blockchain system

Awesome Lists containing this project

README

        

We are building a blockchain based development system

Install npm and version checking and updagrding to lates version.

curl -o- https://raw.githubusercontent.com/creationix/nvm/v0.31.3/install.sh | bash
nvm install node
node --version

if u have multiple versions of python
//alias python=python2

sudo apt install npm

npm --version

sudo npm install npm@latest -g

npm --version

Creating a package.json file: https://docs.npmjs.com/creating-a-package-json-file
To reclaim ownership of the .npm directory execute:

sudo chown -R $(whoami) ~/.npm

sudo npm init

sudo npm install --save solc

Then write the contracts in solidity file and compile with the following command.

node compile.js

sudo chown -R $USER:$(id -gn $USER) /home/yeaseen/.config

npm install --save mocha ganache-cli

npm install [email protected] --save

write the something test.js file and change package.json file test with mocha

npm run test

infura account at ifura.io and create a deploy.js file in the root of project folder

node deploy.js

check rinkeby.etherscan.io: first contract deployed to 0xEDd6D1428E3576E8DB01b912B086569234eCd3D0 [address]

Syntax highlighting for sublime text

https://www.anujvarma.com/package-control-in-sublime-text-setting-up-for-solidity-development/

web3.js:

https://web3js.readthedocs.io/en/v1.2.1/

solidarity tutorial:

http://www.dappuniversity.com/articles/solidity-tutorial