Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/yeaseen/lottery_app_ethereum
- Owner: Yeaseen
- Created: 2019-09-29T18:53:41.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2024-05-02T17:45:07.000Z (9 months ago)
- Last Synced: 2024-05-03T04:31:19.724Z (9 months ago)
- Topics: blockchain, ethereum-contract, ethereum-dapp, lottery
- Language: JavaScript
- Homepage:
- Size: 4.67 MB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 13
-
Metadata Files:
- Readme: Readme
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 --versionif u have multiple versions of python
//alias python=python2sudo 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